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.

Change-Id: Id489b3f337ea0db0be0008477c9e3afde3872004
Closes-Bug: #1752932
(cherry picked from commit ca8e8fc90a)
This commit is contained in:
Jean-Philippe Evrard 2018-03-26 16:56:11 +00:00
parent 3f443bc4d0
commit 85714acedb
2 changed files with 0 additions and 0 deletions