]> git-server-git.apps.pok.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)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 28 Oct 2019 17:08:43 +0000 (13:08 -0400)
commitbd79b4480a5d70076c9d981a34dfd6f357d116dd
treeb0ac14df243fb857afe117fddb49764ab032370e
parent4b667b2f374c0ea1fe1e9d2b6527cb412b0e4752
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>
(cherry picked from commit f1f2352c7974f0839b5e74cb23849e943a1131c6)
infrastructure-playbooks/rolling_update.yml