ansible.builtin.vault_encrypted 测试 – 是否为加密的 Vault 字符串
注意
此测试插件是 ansible-core 的一部分,包含在所有 Ansible 安装中。在大多数情况下,您可以使用简短的插件名称 vault_encrypted。但是,我们建议您使用 完全限定的集合名称 (FQCN) ansible.builtin.vault_encrypted,以便轻松链接到插件文档并避免与可能具有相同测试插件名称的其他集合冲突。
ansible-base 2.10 中的新功能
概要
- 验证输入字符串是否为 Ansible Vault。 
输入
这描述了测试的输入,即 is ansible.builtin.vault_encrypted 或 is not ansible.builtin.vault_encrypted 之前的 value。
| 参数 | 注释 | 
|---|---|
| 可能的 Vault 字符串 | 
示例
thisisfalse: '{{ "any string" is vault_encryped}}'
thisistrue: '{{ "$ANSIBLE_VAULT;1.2;AES256;dev...." is vault_encrypted}}'
返回值
| 键 | 描述 | 
|---|---|
| 如果输入是有效的 Ansible Vault,则返回  返回:成功 | 
