summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml')
-rw-r--r--test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml b/test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml
new file mode 100644
index 0000000..23f32e8
--- /dev/null
+++ b/test/integration/targets/templating_lookups/template_lookup_vaulted/playbook.yml
@@ -0,0 +1,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!'"