Debian Codegraph @

test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml

raw
1 # https://github.com/ansible/ansible/issues/34209
2 - hosts: localhost
3 gather_facts: no
4 vars:
5 hello_world: Hello World
6 tasks:
7 - name: Test that template lookup can handle vaulted templates
8 set_fact:
9 vaulted_hello_world: "{{ lookup('template', 'vaulted_hello.j2') }}"
10
11 - assert:
12 that:
13 - "vaulted_hello_world|trim == 'Unvaulted Hello World!'"