mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
14 lines
396 B
YAML
14 lines
396 B
YAML
- name: "Testing end_host with strategy={{ test_strategy | default('linear') }}"
|
|
hosts:
|
|
- testhost
|
|
- testhost2
|
|
gather_facts: no
|
|
strategy: "{{ test_strategy | default('linear') }}"
|
|
tasks:
|
|
- debug:
|
|
|
|
- meta: end_host
|
|
when: "host_var_role_name == 'role2'" # end play for testhost2, see inventory
|
|
|
|
- debug:
|
|
msg: "play not ended for {{ inventory_hostname }}"
|