1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
- hosts: A,B gather_facts: false tasks: - block: - debug: changed_when: true notify: - handler1 - name: EXPECTED FAILURE fail: when: inventory_hostname == 'B' always: - debug: msg: 'always' - debug: msg: 'after always' handlers: - name: handler1 debug: msg: 'handler1 ran'