ansible.builtin.vault_encrypted test – Is this an encrypted vault string
Note
This test plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
vault_encrypted
.
However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.vault_encrypted
for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same test plugin name.
New in ansible-base 2.10
Synopsis
Verifies if the input string is an Ansible vault or not
Input
This describes the input of the test, the value before is ansible.builtin.vault_encrypted
or is not ansible.builtin.vault_encrypted
.
Parameter |
Comments |
---|---|
The possible vault string |
Examples
thisisfalse: '{{ "any string" is vault_encryped}}'
thisistrue: '{{ "$ANSIBLE_VAULT;1.2;AES256;dev...." is vault_encrypted}}'
Return Value
Key |
Description |
---|---|
Returns Returned: success |