summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml
blob: 23f32e8f41139948d776d72ce0169851b641535a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# https://github.com/ansible/ansible/issues/34209
- hosts: localhost
  gather_facts: no
  vars:
      hello_world: Hello World
  tasks:
    - name: Test that template lookup can handle vaulted templates
      set_fact:
        vaulted_hello_world: "{{ lookup('template', 'vaulted_hello.j2') }}"

    - assert:
        that:
          - "vaulted_hello_world|trim == 'Unvaulted Hello World!'"