--- - name: Undo cluster setup hosts: k3s_cluster gather_facts: true become: true tasks: - name: Run K3s Uninstall script ansible.builtin.command: cmd: k3s-uninstall.sh removes: /var/lib/rancher/k3s/* - name: Remove user kubeconfig ansible.builtin.file: path: /home/{{ ansible_user }}/.kube/config state: absent