mirror of https://github.com/ansible/ansible.git
Revert Clear failed state in always only if we did rescue (#52968)
* Revert "Clear failed state in always only if we did rescue (#52829)"
This reverts commit f135960fc2
.
* Add tests for failed scenario
* Set failed task with EXPECTED FAILURE
pull/52972/head
parent
344a81daec
commit
d55ddec923
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- Fix handlers on failed hosts with always section (https://github.com/ansible/ansible/issues/52561)
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Include tasks that have a failure in a block
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- include_tasks: block_fail_tasks.yml
|
@ -0,0 +1,9 @@
|
||||
- block:
|
||||
- name: EXPECTED FAILURE
|
||||
fail:
|
||||
msg: failure
|
||||
|
||||
always:
|
||||
- name: run always task
|
||||
debug:
|
||||
msg: TEST COMPLETE
|
Loading…
Reference in New Issue