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.
14 lines
479 B
YAML
14 lines
479 B
YAML
4 years ago
|
- 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 }}"
|