Debian Codegraph @

test/integration/targets/strategy_linear/test_include_file_noop.yml

raw
1 - hosts:
2 - testhost
3 - testhost2
4 gather_facts: no
5 vars:
6 secondhost: testhost2
7 tasks:
8 - name: Call the first role only on one host
9 include_role:
10 name: role1
11 when: inventory_hostname is match(secondhost)
12
13 - name: Make sure nothing else runs until role1 finishes
14 assert:
15 that:
16 - "'role1_complete' in hostvars[secondhost]"