ceph-facts: fix IPv6 _radosgw_address interface

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 ed4f23d530)
pull/5408/head
Dimitri Savineau 2020-04-27 16:01:24 -04:00 committed by Dimitri Savineau
parent 7b5dba4488
commit 8c4190e243
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
- name: set_fact _radosgw_address to radosgw_interface - ipv6 - name: set_fact _radosgw_address to radosgw_interface - ipv6
set_fact: 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' when: ip_version == 'ipv6'
- name: set_fact rgw_instances without rgw multisite - name: set_fact rgw_instances without rgw multisite