]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: enable crb repository on mgr hosts
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 13 Feb 2024 07:27:35 +0000 (08:27 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 14 Feb 2024 08:54:13 +0000 (09:54 +0100)
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 <gabrioux@ibm.com>
roles/ceph-mgr/tasks/pre_requisite.yml

index 317a389aa4aa6dfa7bb6f8ac2ca124b51e568c06..20f41c479b7e278312b9c684436080cdc1767b6b 100644 (file)
     - 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 }}'