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

17 lines
350 B
YAML

- hosts: A,B
gather_facts: no
any_errors_fatal: True
tasks:
- command: /bin/true
notify: test_handler
- meta: flush_handlers
- name: Should not get here
debug:
msg: "SHOULD NOT GET HERE"
handlers:
- name: test_handler
command: /usr/bin/{{ (inventory_hostname == 'A') | ternary('true', 'false') }}