When using radosgw_interface and IPv6 setup then the _radosgw_address
fact doesn't use square brackets compared to the radosgw_address and
radosgw_address_block configuration.
Closes: #5325
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
ed4f23d5303f62c814796835ecfad637678641be)
- name: set_fact _radosgw_address to radosgw_interface - ipv6
set_fact:
- _radosgw_address: "{{ hostvars[inventory_hostname][_interface][ip_version][0]['address'] }}"
+ _radosgw_address: "{{ hostvars[inventory_hostname][_interface][ip_version][0]['address'] | ipwrap }}"
when: ip_version == 'ipv6'
- name: set_fact rgw_instances without rgw multisite