From 6804a5a6821a9195e1302e2ac1c5f81d4f35ca55 Mon Sep 17 00:00:00 2001 From: Raimund Hook <openstack@sting-ray.za.net> Date: Wed, 8 May 2019 17:02:00 +0100 Subject: [PATCH] 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 --- ansible/roles/haproxy/tasks/upgrade.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ansible/roles/haproxy/tasks/upgrade.yml b/ansible/roles/haproxy/tasks/upgrade.yml index 0a452d2d5..08e97422c 100644 --- a/ansible/roles/haproxy/tasks/upgrade.yml +++ b/ansible/roles/haproxy/tasks/upgrade.yml @@ -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 -- GitLab