1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/strategy_linear/test_include_file_noop.yml

17 lines
388 B
YAML
Raw Normal View History

- 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]"