Apply haproxy vars to haproxy group instead of haproxy_all
Any ansible command loads the group vars/host vars.
If haproxy group isn't properly loaded with hosts, the whole
group_vars/haproxy_all/keepalived.yml will fail to get an index
for any host belonging to the group.
Instead the index should search in the group in which the variable
applies to, to ensure it's always the same kind of group.
In a later commit, we should make sure the index is always done when
group size is bigger than 0.
Reviewed: https:/ /review. openstack. org/556588 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=ca8e8fc90ab c08e9080a16d5b9 fa3fc5a93c29bb
Committed: https:/
Submitter: Zuul
Branch: master
commit ca8e8fc90abc08e 9080a16d5b9fa3f c5a93c29bb
Author: Jean-Philippe Evrard <email address hidden>
Date: Mon Mar 26 16:56:11 2018 +0000
Apply haproxy vars to haproxy group instead of haproxy_all
Any ansible command loads the group vars/host vars. vars/haproxy_ all/keepalived. yml will fail to get an index
If haproxy group isn't properly loaded with hosts, the whole
group_
for any host belonging to the group.
Instead the index should search in the group in which the variable
applies to, to ensure it's always the same kind of group.
In a later commit, we should make sure the index is always done when
group size is bigger than 0.
Change-Id: Id489b3f337ea0d b0be0008477c9e3 afde3872004
Closes-Bug: #1752932