From b360872016a36c28e7df89ff07a4560ffb45e55a Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 25 Apr 2023 14:47:30 +0200 Subject: [PATCH] preflight: update required repos for epel 'powertools' is for el8 whereas we need 'crb' for el9 Signed-off-by: Guillaume Abrioux --- cephadm-preflight.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cephadm-preflight.yml b/cephadm-preflight.yml index 72dde4c..f7cbd22 100644 --- a/cephadm-preflight.yml +++ b/cephadm-preflight.yml @@ -144,8 +144,8 @@ - name: install epel-release when: ansible_facts['distribution'] == 'CentOS' block: - - name: enable CentOS PowerTools repository for epel - command: dnf config-manager --set-enabled powertools + - name: enable required CentOS repository for epel + command: dnf config-manager --set-enabled "{{ 'powertools' if ansible_facts['distribution_major_version'] == '8' else 'crb' }}" changed_when: false - name: install package