mirror of https://github.com/ansible/ansible.git
parent
3d6a60b481
commit
42d8a9daa8
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "Properly execute rescue section when an include task fails in all loop iterations (https://github.com/ansible/ansible/issues/23161)"
|
@ -0,0 +1,29 @@
|
||||
- name: "Test rescue/always sections with includes in a loop, strategy={{ strategy }}"
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
strategy: "{{ strategy }}"
|
||||
tasks:
|
||||
- block:
|
||||
- include_role:
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- a
|
||||
- b
|
||||
rescue:
|
||||
- debug:
|
||||
msg: rescue include_role in a loop
|
||||
always:
|
||||
- debug:
|
||||
msg: always include_role in a loop
|
||||
|
||||
- block:
|
||||
- include_tasks: "{{ item }}"
|
||||
loop:
|
||||
- a
|
||||
- b
|
||||
rescue:
|
||||
- debug:
|
||||
msg: rescue include_tasks in a loop
|
||||
always:
|
||||
- debug:
|
||||
msg: always include_tasks in a loop
|
Loading…
Reference in New Issue