From f2b4b5b69a087f460915513841526636cf196adc Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Fri, 29 Mar 2024 14:59:54 +0100 Subject: [PATCH] preflight: remove rhcs6 repos before installing rhcs7 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2258940 Signed-off-by: Teoman ONAY --- cephadm-preflight.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cephadm-preflight.yml b/cephadm-preflight.yml index 4ca5d3d..617f740 100644 --- a/cephadm-preflight.yml +++ b/cephadm-preflight.yml @@ -31,6 +31,8 @@ - rhceph-4-osd-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms repos_5_to_disable: - rhceph-5-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms + repos_6_to_disable: + - rhceph-6-tools-for-rhel-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}-rpms packages_to_uninstall: - ceph-mds - ceph-mgr @@ -62,7 +64,7 @@ - name: disable older rhceph repositories if any on RHEL{{ansible_facts['distribution_major_version']}} when: ansible_facts['distribution_major_version'] == '9' rhsm_repository: - name: "{{ repos_5_to_disable }}" + name: "{{ repos_5_to_disable + repos_6_to_disable }}" state: absent - name: enable ceph package repositories