mirror of https://github.com/ansible/ansible.git
parent
ac77911491
commit
4f3ee4624e
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- Add ``end_batch`` meta task.
|
||||
@ -0,0 +1,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 }}"
|
||||
Loading…
Reference in New Issue