From 5596360ffda39cb38273469c2fbe3f5cd3285345 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 19 Apr 2022 07:12:44 +0200 Subject: [PATCH] dashboard: fix regression introduced by ceph/ceph-ansible/pull/7150 when no rgw is present, it fails. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2076192 Signed-off-by: Guillaume Abrioux --- roles/ceph-dashboard/tasks/configure_dashboard.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index c6f7ad4ef..7dc181105 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -27,9 +27,10 @@ - include_role: name: ceph-facts tasks_from: set_radosgw_address.yml - loop: "{{ groups[rgw_group_name] }}" + loop: "{{ groups.get(rgw_group_name, []) }}" loop_control: loop_var: ceph_dashboard_call_item + when: groups.get(rgw_group_name, []) | length > 0 - name: disable SSL for dashboard when: dashboard_protocol == "http"