- hosts: localhost
  gather_facts: false
  tasks:
    - block:
        - block:
            - name: EXPECTED FAILURE
              fail:
          always:
            - block:
              - block:
                - debug:
      rescue:
        - block:
          - block:
            - assert:
                that:
                  - ansible_failed_task is defined
                  - ansible_failed_result is defined
