From: Guillaume Abrioux Date: Thu, 24 Oct 2019 07:41:06 +0000 (+0200) Subject: update: use right node when creating active mds group X-Git-Tag: v5.0.0alpha1~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d06057ebd2f5730dea67e687ad596c98f1e5fad8;p=ceph-ansible.git update: use right node when creating active mds group This must be consistent with what is used in `name` parameter. Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 82388cd10..01a873f58 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -613,8 +613,8 @@ add_host: name: "{{ mds_active_name[0] if mds_active_name is defined else groups.get(mds_group_name)[0] }}" groups: active_mdss - ansible_host: "{{ hostvars[mds_active_name]['ansible_host'] | default(omit) }}" - ansible_port: "{{ hostvars[mds_active_name]['ansible_port'] | default(omit) }}" + ansible_host: "{{ hostvars[mds_active_name[0] if mds_active_name is defined else groups.get(mds_group_name)[0]]['ansible_host'] | default(omit) }}" + ansible_port: "{{ hostvars[mds_active_name[0] if mds_active_name is defined else groups.get(mds_group_name)[0]]['ansible_port'] | default(omit) }}" - name: upgrade active mds