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.
Changes
In the reset playbook,
k3s-uninstall.sh
executesrm -rf /var/lib/rancher/k3s
. However, if an alternate server location is defined ink3s_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 toroot
.