4170786cd9
* Detect failure in always block after rescue (#70094)
* Detect failure in always block after rescue
Fixes #70000
ci_complete
* Add more tests
(cherry picked from commit 0ed5b77377
)
* add changelog
Co-authored-by: Matt Davis <mrd@redhat.com>
16 lines
334 B
YAML
16 lines
334 B
YAML
- hosts: localhost
|
|
gather_facts: no
|
|
tasks:
|
|
- block:
|
|
- name: EXPECTED FAILURE
|
|
fail:
|
|
msg: Failure in block
|
|
rescue:
|
|
- debug:
|
|
msg: Rescue
|
|
always:
|
|
- name: EXPECTED FAILURE
|
|
fail:
|
|
msg: Failure in always
|
|
- debug:
|
|
msg: DID NOT RUN
|