You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/blocks/issue29047_tasks.yml

14 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