mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d55ddec923
* 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
9 lines
138 B
YAML
9 lines
138 B
YAML
- block:
|
|
- name: EXPECTED FAILURE
|
|
fail:
|
|
msg: failure
|
|
|
|
always:
|
|
- name: run always task
|
|
debug:
|
|
msg: TEST COMPLETE
|