1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
- hosts: localhost gather_facts: no tasks: - block: - name: EXPECTED FAILURE fail: msg: Failure in block rescue: - debug: msg: Rescue always: - name: EXPECTED FAILURE fail: msg: Failure in always - debug: msg: DID NOT RUN