summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/template/custom_tasks/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/template/custom_tasks/tasks/main.yml')
-rw-r--r--test/integration/targets/template/custom_tasks/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/integration/targets/template/custom_tasks/tasks/main.yml b/test/integration/targets/template/custom_tasks/tasks/main.yml
new file mode 100644
index 0000000..182f7cc
--- /dev/null
+++ b/test/integration/targets/template/custom_tasks/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+- set_fact:
+ output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
+
+- template:
+ src: test
+ dest: "{{ output_dir }}/templated_test"
+ register: custom_template_result
+
+- debug:
+ msg: "{{ custom_template_result }}"
+
+- assert:
+ that:
+ - custom_template_result.changed