]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-facts: fix IPv6 _radosgw_address interface
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 27 Apr 2020 20:01:24 +0000 (16:01 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 30 Apr 2020 17:29:22 +0000 (13:29 -0400)
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)

roles/ceph-facts/tasks/set_radosgw_address.yml

index 867b4686aa1ebb3a81defb3487c4b3dfa357a038..2ff67e80484ef6c7d6a97f33e642c385c3159354 100644 (file)
@@ -39,7 +39,7 @@
 
     - 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