summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_import/playbook/test_templated_filenames.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/include_import/playbook/test_templated_filenames.yml')
-rw-r--r--test/integration/targets/include_import/playbook/test_templated_filenames.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/integration/targets/include_import/playbook/test_templated_filenames.yml b/test/integration/targets/include_import/playbook/test_templated_filenames.yml
new file mode 100644
index 0000000..2f78ab0
--- /dev/null
+++ b/test/integration/targets/include_import/playbook/test_templated_filenames.yml
@@ -0,0 +1,47 @@
+- name: test templating import_playbook with extra vars
+ import_playbook: "{{ pb }}"
+
+- name: test templating import_playbook with vars
+ import_playbook: "{{ test_var }}"
+ vars:
+ test_var: validate_templated_playbook.yml
+
+- name: test templating import_tasks
+ hosts: localhost
+ gather_facts: no
+ vars:
+ play_var: validate_templated_tasks.yml
+ tasks:
+ - name: test templating import_tasks with play vars
+ import_tasks: "{{ play_var }}"
+
+ - name: test templating import_tasks with task vars
+ import_tasks: "{{ task_var }}"
+ vars:
+ task_var: validate_templated_tasks.yml
+
+ - name: test templating import_tasks with extra vars
+ import_tasks: "{{ tasks }}"
+
+- name: test templating import_role from_files
+ hosts: localhost
+ gather_facts: no
+ vars:
+ play_var: templated.yml
+ tasks:
+ - name: test templating import_role tasks_from with play vars
+ import_role:
+ name: role1
+ tasks_from: "{{ play_var }}"
+
+ - name: test templating import_role tasks_from with task vars
+ import_role:
+ name: role1
+ tasks_from: "{{ task_var }}"
+ vars:
+ task_var: templated.yml
+
+ - name: test templating import_role tasks_from with extra vars
+ import_role:
+ name: role1
+ tasks_from: "{{ tasks_from }}"