The uninstall scripts that are included with RKE2 specifically look for yum repos /etc/yum.repos.d/rancher-rke2*.repo. Currently the ansible role creates repos that are missing rancher-. This causes the uninstall script to not delete the repo files. If you then try to install RKE2 again with a different version, it will fail because there are multiple yum repos defined. The ansible roles should name the repos correctly.
Which issue(s) this PR fixes:
Fixes #178
Testing
Install RKE2 using the ansible. Run rke2-uninstall.sh. Repos in /etc/yum.repos.d deleted.
Release Notes
(REQUIRED)
Yum repos renamed to be prefixed with `rancher-` to align with rke2-uninstall script
What type of PR is this?
(REQUIRED)
What this PR does / why we need it:
The uninstall scripts that are included with RKE2 specifically look for yum repos
/etc/yum.repos.d/rancher-rke2*.repo
. Currently the ansible role creates repos that are missingrancher-
. This causes the uninstall script to not delete the repo files. If you then try to install RKE2 again with a different version, it will fail because there are multiple yum repos defined. The ansible roles should name the repos correctly.Which issue(s) this PR fixes:
Fixes #178
Testing
Install RKE2 using the ansible. Run
rke2-uninstall.sh
. Repos in/etc/yum.repos.d
deleted.Release Notes
(REQUIRED)