diff --git a/roles/ceph-grafana/tasks/configure_grafana.yml b/roles/ceph-grafana/tasks/configure_grafana.yml index e45a7c74e..7aa444ab7 100644 --- a/roles/ceph-grafana/tasks/configure_grafana.yml +++ b/roles/ceph-grafana/tasks/configure_grafana.yml @@ -1,4 +1,14 @@ --- +- name: install ceph-grafana-dashboards package on RedHat or SUSE + package: + name: ceph-grafana-dashboards + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + register: result + until: result is succeeded + when: + - not containerized_deployment + - ansible_os_family in ['RedHat', 'Suse'] + - name: make sure grafana is down service: name: grafana-server diff --git a/roles/ceph-mgr/tasks/pre_requisite.yml b/roles/ceph-mgr/tasks/pre_requisite.yml index 12051ae64..f2cd100a1 100644 --- a/roles/ceph-mgr/tasks/pre_requisite.yml +++ b/roles/ceph-mgr/tasks/pre_requisite.yml @@ -7,15 +7,6 @@ until: result is succeeded when: ansible_os_family in ['RedHat', 'Suse'] -- name: install ceph-grafana-dashboards package on RedHat or SUSE - package: - name: ceph-grafana-dashboards - state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" - register: result - until: result is succeeded - when: - - ansible_os_family in ['RedHat', 'Suse'] - - name: install ceph-mgr packages for debian apt: name: '{{ ceph_mgr_packages }}'