Ansible flush_handlers ignores conditional clauses
The flush_handlers clause doesn't honour conditional clauses. Instead, it prints a warning and runs anyway: [WARNING]: flush_handlers task does not support when conditional See: https://github.com/ansible/ansible/pull/41126 TrivialFix Change-Id: Iaf70c2e932ae6dfb723bdb2ba658acdbfe74ebe2
This commit is contained in:
parent
0d5ccfefae
commit
6804a5a682
@ -11,12 +11,5 @@
|
|||||||
name: "keepalived"
|
name: "keepalived"
|
||||||
when: kolla_internal_vip_address not in secondary_addresses
|
when: kolla_internal_vip_address not in secondary_addresses
|
||||||
|
|
||||||
# Upgrading master keepalived and haproxy
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
when: kolla_internal_vip_address in secondary_addresses
|
|
||||||
|
|
||||||
# Upgrading slave keepalived and haproxy
|
|
||||||
- name: Flush handlers
|
|
||||||
meta: flush_handlers
|
|
||||||
when: kolla_internal_vip_address not in secondary_addresses
|
|
||||||
|
Loading…
Reference in New Issue
Block a user