2018-11-14 14:46:25 +00:00
|
|
|
- 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
|
2019-01-09 23:42:36 +00:00
|
|
|
when: "host_var_role_name == 'role2'" # end play for testhost2, see inventory
|
2018-11-14 14:46:25 +00:00
|
|
|
|
|
|
|
- debug:
|
|
|
|
msg: "play not ended for {{ inventory_hostname }}"
|