mirror of https://github.com/ceph/ceph-ansible.git
rgw: fix a typo in multisite
if `rgw_zonegroupmaster` is not defined at the rgw instance level in `rgw_instances` it will fallback to a wrong variable (`rgw_zonemaster`). Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1925247 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/6259/head
parent
94af3c87d1
commit
931b87e830
|
@ -11,7 +11,7 @@
|
|||
zonegroups: "{{ zonegroups | default([]) | union([{ 'realm': item.rgw_realm, 'zonegroup': item.rgw_zonegroup, 'is_master': item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonegroupmaster']) }]) }}"
|
||||
run_once: true
|
||||
loop: "{{ rgw_instances_all }}"
|
||||
when: item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonemaster']) | bool
|
||||
when: item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonegroupmaster']) | bool
|
||||
|
||||
- name: create list zones
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in New Issue