mirror of https://github.com/ansible/ansible.git
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.
17 lines
350 B
YAML
17 lines
350 B
YAML
2 years ago
|
- 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') }}
|