Skip to content

Commit

Permalink
preflight: remove rhcs6 repos before installing rhcs7
Browse files Browse the repository at this point in the history
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2258940

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit f2b4b5b)
  • Loading branch information
asm0deuz authored and mergify[bot] committed Apr 2, 2024
1 parent 775303b commit 81f2054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 81f2054

Please sign in to comment.