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/52561.yml

21 lines
402 B
YAML

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