summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/strategy_linear/test_include_file_noop.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/strategy_linear/test_include_file_noop.yml')
-rw-r--r--test/integration/targets/strategy_linear/test_include_file_noop.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/strategy_linear/test_include_file_noop.yml b/test/integration/targets/strategy_linear/test_include_file_noop.yml
new file mode 100644
index 0000000..9dbf83d
--- /dev/null
+++ b/test/integration/targets/strategy_linear/test_include_file_noop.yml
@@ -0,0 +1,16 @@
+- hosts:
+ - testhost
+ - testhost2
+ gather_facts: no
+ vars:
+ secondhost: testhost2
+ tasks:
+ - name: Call the first role only on one host
+ include_role:
+ name: role1
+ when: inventory_hostname is match(secondhost)
+
+ - name: Make sure nothing else runs until role1 finishes
+ assert:
+ that:
+ - "'role1_complete' in hostvars[secondhost]"