ansible / ansible.builtin / v2.16.5 / lookup / unvault read vaulted file(s) contents | "added in version" 2.10 of ansible.builtin" Authors: Ansible Core Teamansible.builtin.unvault (v2.16.5) — lookup
pip
Install with pip install ansible-core==2.16.5
This lookup returns the contents from vaulted (or not) file(s) on the Ansible controller's file system.
- ansible.builtin.debug: msg="the value of foo.txt is {{ lookup('ansible.builtin.unvault', '/etc/foo.txt') | string | trim }}"
_terms: description: path(s) of files to read required: true
_raw: description: - content of file(s) as bytes elements: raw type: list