summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/meta_tasks/test_end_host_fqcn.yml
blob: bdb38b536e7cc6dcbf6276dd06c97e5d0fe2b745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- 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 }}"