vaulted_file¶
Collection Note
This module is part of the ansible.builtin collection. To install the collection, use:
Added in version2.18.
Synopsis¶
- Verifies if the input path is an Ansible vault file.
Parameters¶
| Parameter | Defaults / Choices | Comments |
|---|---|---|
| _input path required |
The path to the possible vault. |
Examples¶
thisisfalse: '{{ "/etc/hosts" is vaulted_file}}'
thisistrue: '{{ "/path/to/vaulted/file" is vaulted_file}}'
Return Values¶
| Key | Data Type | Description | Returned |
|---|---|---|---|
| _value | boolean | Returns V(True) if the path is a valid ansible vault, V(False) otherwise. |
Authors¶
- Ansible Core