k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

make reset work with alt k3s dir and root user #265

Closed gmautner closed 7 months ago

gmautner commented 7 months ago

Changes

In the reset playbook, k3s-uninstall.sh executes rm -rf /var/lib/rancher/k3s. However, if an alternate server location is defined in k3s_server_location, the k3s uninstall deletes only the symlink but not the actual source folder. This can lead to complications in reinstalls, for example.

Another suggested change addresses the scenario where reset is executed with ansible_user set to root.

dereknola commented 7 months ago

Lint :grin: