summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/meta_tasks/test_end_batch.yml
blob: 4af020afa3415d61fb195aeb1a521695ec71a240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- name: Testing end_batch with strategy {{ test_strategy | default('linear') }}
  hosts: testhost:testhost2
  gather_facts: no
  serial: 1
  strategy: "{{ test_strategy | default('linear') }}"
  tasks:
    - debug:
        msg: "Using end_batch, current host: {{ inventory_hostname }}, current batch: {{ ansible_play_batch }}"

    - meta: end_batch

    - fail:
        msg: "Failed to end_batch, current host: {{ inventory_hostname }}, current batch: {{ ansible_play_batch }}"