---
- 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
