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 <gabrioux@redhat.com>
(cherry picked from commit 1a56fd6a21)
pull/7307/head
Guillaume Abrioux 2022-04-19 07:12:44 +02:00
parent c4ec2c4e54
commit 1453915ed9
1 changed files with 2 additions and 1 deletions

View File

@ -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
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} config set mgr mgr/dashboard/ssl false"