summaryrefslogtreecommitdiff
path: root/test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml')
-rw-r--r--test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml19
1 files changed, 5 insertions, 14 deletions
diff --git a/test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml b/test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml
index 25e91f28..d225c0f9 100644
--- a/test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml
+++ b/test/integration/targets/parsing/roles/test_good_parsing/tasks/main.yml
@@ -121,10 +121,7 @@
- result.cmd == "echo foo --arg=a --arg=b"
- name: test includes with params
- include_tasks: test_include.yml
- vars:
- fact_name: include_params
- param: "{{ test_input }}"
+ include: test_include.yml fact_name=include_params param="{{ test_input }}"
- name: assert the include set the correct fact for the param
assert:
@@ -132,10 +129,7 @@
- include_params == test_input
- name: test includes with quoted params
- include_tasks: test_include.yml
- vars:
- fact_name: double_quoted_param
- param: "this is a param with double quotes"
+ include: test_include.yml fact_name=double_quoted_param param="this is a param with double quotes"
- name: assert the include set the correct fact for the double quoted param
assert:
@@ -143,10 +137,7 @@
- double_quoted_param == "this is a param with double quotes"
- name: test includes with single quoted params
- include_tasks: test_include.yml
- vars:
- fact_name: single_quoted_param
- param: 'this is a param with single quotes'
+ include: test_include.yml fact_name=single_quoted_param param='this is a param with single quotes'
- name: assert the include set the correct fact for the single quoted param
assert:
@@ -154,7 +145,7 @@
- single_quoted_param == "this is a param with single quotes"
- name: test includes with quoted params in complex args
- include_tasks: test_include.yml
+ include: test_include.yml
vars:
fact_name: complex_param
param: "this is a param in a complex arg with double quotes"
@@ -174,7 +165,7 @@
- result.msg == "this should be debugged"
- name: test conditional includes
- include_tasks: test_include_conditional.yml
+ include: test_include_conditional.yml
when: false
- name: assert the nested include from test_include_conditional was not set