]> 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)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 28 Oct 2019 17:08:33 +0000 (13:08 -0400)
commitba4059d15ad0d4dafc1cb31393a681071b54c5fc
treee603d7e964b89892385b79a081fdfb709291d530
parent3c3102e21a7d3e5b5c19fcd4702f4cc80416efc3
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