From: Dimitri Savineau Date: Fri, 25 Oct 2019 17:36:07 +0000 (-0400) Subject: rolling_update: fix reset mon_host variable X-Git-Tag: v5.0.0alpha1~14 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=650bc0c3f0598feb0a6d9b0f7688b773836819a2;p=ceph-ansible.git rolling_update: fix reset mon_host variable 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 --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 01a873f58..405c714ff 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -277,7 +277,7 @@ - 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