Merge "minor update: only migrate HA VIP away when needed"

This commit is contained in:
Zuul 2020-08-26 07:09:54 +00:00 committed by Gerrit Code Review
commit b9722e1ac4

View File

@ -336,7 +336,9 @@ outputs:
async: 30
poll: 4
- name: Move virtual IPs to another node before stopping pacemaker
when: step|int == 1
when:
- step|int == 1
- hostvars[inventory_hostname]["haproxy_node_names"]|default([])|length > 1
shell: |
CLUSTER_NODE=$(crm_node -n)
echo "Retrieving all the VIPs which are hosted on this node"