rancherfederal / rke2-ansible

RKE2 cluster provisioning via Ansible.
Apache License 2.0
233 stars 129 forks source link

Fix repos names to align with uninstall script #188

Closed jcox10 closed 6 months ago

jcox10 commented 10 months ago

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 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