You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/handlers/test_flush_handlers_rescue_...

23 lines
413 B
YAML

- hosts: A,B
gather_facts: false
tasks:
- block:
- command: echo
notify: sometimes_fail
- meta: flush_handlers
rescue:
- debug:
msg: 'rescue ran'
always:
- debug:
msg: 'always ran'
- debug:
msg: 'should run for both hosts'
handlers:
- name: sometimes_fail
fail:
when: inventory_hostname == 'A'