This is a partial backport of
2547ab60.
We are currently installing the ceph-mgr-dashboard package even if the
dashboard_enabled variable is set to false.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
# Ceph mgr packages to install, ceph-mgr + extra module packages.
#ceph_mgr_packages:
# - ceph-mgr
-# - ceph-mgr-dashboard
# - ceph-mgr-diskprediction-local
# Ceph mgr packages to install, ceph-mgr + extra module packages.
ceph_mgr_packages:
- ceph-mgr
- - ceph-mgr-dashboard
- ceph-mgr-diskprediction-local
- dashboard_enabled | bool
- ansible_facts['distribution'] == 'RedHat'
+- name: set_fact ceph_mgr_packages for dashboard
+ set_fact:
+ ceph_mgr_packages: "{{ ceph_mgr_packages | union(['ceph-mgr-dashboard']) }}"
+ when: dashboard_enabled | bool
+
- name: install ceph-mgr packages on RedHat or SUSE
package:
name: '{{ ceph_mgr_packages }}'