mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
412 B
YAML
15 lines
412 B
YAML
4 years ago
|
- name: "Testing end_host with strategy={{ test_strategy | default('linear') }}"
|
||
|
hosts:
|
||
|
- testhost
|
||
|
- testhost2
|
||
|
gather_facts: no
|
||
|
strategy: "{{ test_strategy | default('linear') }}"
|
||
|
tasks:
|
||
|
- debug:
|
||
|
|
||
|
- ansible.builtin.meta: end_host
|
||
|
when: "host_var_role_name == 'role2'" # end play for testhost2, see inventory
|
||
|
|
||
|
- debug:
|
||
|
msg: "play not ended for {{ inventory_hostname }}"
|