]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: fix reset mon_host variable
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 25 Oct 2019 17:36:07 +0000 (13:36 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Sat, 26 Oct 2019 12:20:54 +0000 (08:20 -0400)
mon_host should use the inventory hostname and not the node hostname.
Fix creates an issue when the inventory and node hostname are different.

Closes: #4670
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 650bc0c3f0598feb0a6d9b0f7688b773836819a2)

infrastructure-playbooks/rolling_update.yml

index 01a873f58a76a89c039d7aeeeb089424941a41b8..405c714ff431d02235d247e123dbed342efbad91 100644 (file)
 
     - name: reset mon_host fact
       set_fact:
-        mon_host: "{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"
+        mon_host: "{{ groups[mon_group_name][0] }}"
 
 
 - name: upgrade ceph mgr nodes when implicitly collocated on monitors