]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rolling_update: fix active mds host value
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 25 Oct 2019 20:47:50 +0000 (16:47 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 28 Oct 2019 14:02:50 +0000 (15:02 +0100)
commitf1f2352c7974f0839b5e74cb23849e943a1131c6
tree665f36a3ef53919af7a4aa432ee27c94f959b6e4
parent8a0a13f67a56bd3c1eb1078892456cdb692b0fcb
rolling_update: fix active mds host value

The active mds host should be based on the inventory hostname and not on
the ansible hostname.
The value returns under the mdsmap structure is based on the OS hostname
so we need to find the right node in the inventory with this value when
doing operation on inventory nodes.

Othewise we could see error like:

The task includes an option with an undefined variable. The error was:
"hostvars[foobar]" is undefined

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/rolling_update.yml