ansible.builtin.unvault (v2.16.5) — lookup

read vaulted file(s) contents

| "added in version" 2.10 of ansible.builtin"

Authors: Ansible Core Team

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

This lookup returns the contents from vaulted (or not) file(s) on the Ansible controller's file system.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- ansible.builtin.debug: msg="the value of foo.txt is {{ lookup('ansible.builtin.unvault', '/etc/foo.txt') | string | trim }}"

Inputs

    
_terms:
    description: path(s) of files to read
    required: true

Outputs

_raw:
  description:
  - content of file(s) as bytes
  elements: raw
  type: list

See also