From 6b185a3c8236ddccbeea7a8d09ed399ee5330dee Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 13 Feb 2024 08:27:35 +0100 Subject: [PATCH] common: enable crb repository on mgr hosts This is needed in order to install `ceph-mgr-dashboard` as it has a dependency on `python3-grpcio-tools` which comes from crb repo. Signed-off-by: Guillaume Abrioux --- roles/ceph-mgr/tasks/pre_requisite.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ceph-mgr/tasks/pre_requisite.yml b/roles/ceph-mgr/tasks/pre_requisite.yml index 317a389aa4..f6e148be07 100644 --- a/roles/ceph-mgr/tasks/pre_requisite.yml +++ b/roles/ceph-mgr/tasks/pre_requisite.yml @@ -18,6 +18,14 @@ - ansible_facts['os_family'] != 'RedHat' - ansible_facts['distribution_major_version'] | int != 7 +- name: enable crb repository + ansible.builtin.yum_repository: + name: crb + enabled: yes + when: + - ansible_facts['os_family'] == 'RedHat' + - ansible_facts['distribution_major_version'] | int == 9 + - name: install ceph-mgr packages on RedHat or SUSE package: name: '{{ ceph_mgr_packages }}'