blob: d2812b5ea76c84abcce3e164325d223cd0948c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- 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') }}
|