ansible/test/integration/targets/blocks/always_failure_with_rescue_rc.yml
Martin Krizek 0ed5b77377
Detect failure in always block after rescue ()
* Detect failure in always block after rescue

Fixes 

ci_complete

* Add more tests
2020-06-18 11:03:36 -05:00

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