mirror of https://github.com/ceph/ceph-ansible.git
ceph-facts: fix _radosgw_address with block
pull/4533/heade695efc
introduced a regression in the _radosgw_address fact when using the radosgw_address_block variable. There's no item there because we don't use the items lookup. This is only used for _monitor_address with monitor_address_block. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1758099 Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit780cf36a59
)
parent
13ca0531d8
commit
70267cb30b
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: set_fact _radosgw_address to radosgw_address_block ipv4
|
||||
set_fact:
|
||||
_radosgw_address: "{{ hostvars[inventory_hostname]['ansible_all_ipv4_addresses'] | ips_in_ranges(hostvars[item]['radosgw_address_block'].split(',')) | first }}"
|
||||
_radosgw_address: "{{ hostvars[inventory_hostname]['ansible_all_ipv4_addresses'] | ips_in_ranges(hostvars[inventory_hostname]['radosgw_address_block'].split(',')) | first }}"
|
||||
when:
|
||||
- radosgw_address_block is defined
|
||||
- radosgw_address_block != 'subnet'
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: set_fact _radosgw_address to radosgw_address_block ipv6
|
||||
set_fact:
|
||||
_radosgw_address: "{{ hostvars[inventory_hostname]['ansible_all_ipv6_addresses'] | ips_in_ranges(hostvars[item]['radosgw_address_block'].split(',')) | last | ipwrap }}"
|
||||
_radosgw_address: "{{ hostvars[inventory_hostname]['ansible_all_ipv6_addresses'] | ips_in_ranges(hostvars[inventory_hostname]['radosgw_address_block'].split(',')) | last | ipwrap }}"
|
||||
when:
|
||||
- radosgw_address_block is defined
|
||||
- radosgw_address_block != 'subnet'
|
||||
|
|
Loading…
Reference in New Issue