From 470f63aebb1ec3fd524a5dbc8f83f2186eba96b7 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Tue, 18 Oct 2022 15:28:54 +0200 Subject: [PATCH] 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 (cherry picked from commit 590e57cc1b9a79ced7a9208db8bf8eaf43d3f320) --- roles/ceph-dashboard/tasks/configure_dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index 42c976d44..969a47e55 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -36,7 +36,7 @@ loop: "{{ groups.get(rgw_group_name, []) }}" loop_control: 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 when: dashboard_protocol == "http" -- 2.39.5