Setting fact _radosgw_address fail when RGW is on a different network

Changed the when condition to only execute that fact setting on RGW
nodes while before it was run on all nodes and failed if the node
was not on the same network range as the RGW.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2131150

Signed-off-by: Teoman ONAY <tonay@redhat.com>
(cherry picked from commit 590e57cc1b)
pull/7346/head v6.0.28.2
Teoman ONAY 2022-10-18 15:28:54 +02:00
parent f80232361b
commit 524d6e95b5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
loop: "{{ groups.get(rgw_group_name, []) }}" loop: "{{ groups.get(rgw_group_name, []) }}"
loop_control: loop_control:
loop_var: ceph_dashboard_call_item loop_var: ceph_dashboard_call_item
when: groups.get(rgw_group_name, []) | length > 0 when: inventory_hostname in groups.get(rgw_group_name, [])
- name: disable SSL for dashboard - name: disable SSL for dashboard
when: dashboard_protocol == "http" when: dashboard_protocol == "http"