unvault¶
Collection Note
This module is part of the ansible.builtin collection. To install the collection, use:
Added in version2.10.
Synopsis¶
- This lookup returns the contents from vaulted (or not) file(s) on the Ansible controller's file system.
Parameters¶
| Parameter | Defaults / Choices | Comments |
|---|---|---|
| _terms required |
path(s) of files to read |
Notes¶
Note
- This lookup does not understand 'globbing' nor shell environment variables.
Examples¶
- ansible.builtin.debug: msg="the value of foo.txt is {{ lookup('ansible.builtin.unvault', '/etc/foo.txt') | string | trim }}"
Return Values¶
| Key | Data Type | Description | Returned |
|---|---|---|---|
| _raw | list | content of file(s) as bytes |
Authors¶
- Ansible Core Team