ansible/test/integration/targets/blocks/issue29047_tasks.yml
David Shrewsbury 393412dc64
Fix play stats when rescue block is a child block (#70922) (#71334)
* check run state of current block only

* Add changelog and test

* Add test for issue 29047

(cherry picked from commit f2f6c34632)
2020-08-28 12:23:30 -05:00

13 lines
326 B
YAML

---
- name: "EXPECTED FAILURE"
block:
- fail:
msg: "EXPECTED FAILURE"
rescue:
- name: Assert that ansible_failed_task is defined
assert:
that: ansible_failed_task is defined
- name: Assert that ansible_failed_result is defined
assert:
that: ansible_failed_result is defined