From 32c2a18f8c803e6b670ae20763e712c0308672e5 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 317a389aa..20f41c479 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 + community.general.dnf_config_manager: + name: crb + state: enabled + 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 }}' -- 2.39.5