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:
Raimund Hook 2019-05-08 17:02:00 +01:00
parent 0d5ccfefae
commit 6804a5a682
1 changed files with 0 additions and 7 deletions

View File

@ -11,12 +11,5 @@
name: "keepalived"
when: kolla_internal_vip_address not in secondary_addresses
# Upgrading master keepalived and haproxy
- name: 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