From 8c4190e2439a75049ef02a3fe846aeb92fb003ae Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 27 Apr 2020 16:01:24 -0400 Subject: [PATCH] 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 (cherry picked from commit ed4f23d5303f62c814796835ecfad637678641be) --- roles/ceph-facts/tasks/set_radosgw_address.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-facts/tasks/set_radosgw_address.yml b/roles/ceph-facts/tasks/set_radosgw_address.yml index 867b4686a..2ff67e804 100644 --- a/roles/ceph-facts/tasks/set_radosgw_address.yml +++ b/roles/ceph-facts/tasks/set_radosgw_address.yml @@ -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