]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: fix regression
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Apr 2022 05:12:44 +0000 (07:12 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 20 Apr 2022 05:39:03 +0000 (07:39 +0200)
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 <gabrioux@redhat.com>
(cherry picked from commit 1a56fd6a21b3e39c8acd4d3d20451df9b96754d2)

roles/ceph-dashboard/tasks/configure_dashboard.yml

index 3684293db211222b2937e6510b14254fbacb123a..ec34c3e875e52d800f069f6fbe12f144b4f72cbc 100644 (file)
 - 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
   command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} config set mgr mgr/dashboard/ssl false"