ansible/test/integration/targets/blocks/block_rescue_vars.yml

17 lines
412 B
YAML
Raw Normal View History

- hosts: localhost
gather_facts: no
tasks:
- block:
- name: EXPECTED FAILURE
fail:
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