summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/var_templating/test_vars_with_sources.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/var_templating/test_vars_with_sources.yml')
-rw-r--r--test/integration/targets/var_templating/test_vars_with_sources.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/var_templating/test_vars_with_sources.yml b/test/integration/targets/var_templating/test_vars_with_sources.yml
new file mode 100644
index 0000000..0b8c990
--- /dev/null
+++ b/test/integration/targets/var_templating/test_vars_with_sources.yml
@@ -0,0 +1,9 @@
+- hosts: localhost
+ gather_facts: false
+ tasks:
+ - template:
+ src: ansible_debug_template.j2
+ dest: "{{ output_dir }}/ansible_debug_templated.txt"
+ vars:
+ output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
+ hello: hello