From 3625ea6ef847ec06584d7edb4d52b70f6a15c68e Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 24 Oct 2019 09:41:06 +0200 Subject: [PATCH] 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 (cherry picked from commit d06057ebd2f5730dea67e687ad596c98f1e5fad8) --- infrastructure-playbooks/rolling_update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5