summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/blocks/issue29047_tasks.yml
blob: 3470d8672de79a16978340c13536b6dc03d65148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- 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