mirror of https://github.com/ansible/ansible.git
parent
82d91f0952
commit
a3cdd831b3
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Fix handlers not being executed in lockstep using the linear strategy in some cases (https://github.com/ansible/ansible/issues/82307)
|
@ -0,0 +1,25 @@
|
|||||||
|
- hosts: A,B
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- block:
|
||||||
|
- command: echo
|
||||||
|
notify:
|
||||||
|
- handler1
|
||||||
|
- handler2
|
||||||
|
|
||||||
|
- fail:
|
||||||
|
when: inventory_hostname == "B"
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
always:
|
||||||
|
- name: always
|
||||||
|
debug:
|
||||||
|
msg: always
|
||||||
|
handlers:
|
||||||
|
- name: handler1
|
||||||
|
debug:
|
||||||
|
msg: handler1
|
||||||
|
|
||||||
|
- name: handler2
|
||||||
|
debug:
|
||||||
|
msg: handler2
|
Loading…
Reference in New Issue