diff --git a/playbooks/reset.yml b/playbooks/reset.yml index c11048ae6..5ec49abce 100644 --- a/playbooks/reset.yml +++ b/playbooks/reset.yml @@ -31,3 +31,12 @@ ansible.builtin.file: path: /etc/rancher/k3s/config.yaml state: absent + +- name: Undo user setup + hosts: server + tasks: + - name: Remove K3s commands from ~/.bashrc + ansible.builtin.lineinfile: + path: "~{{ ansible_user }}/.bashrc" + search_string: "Added by k3s-ansible" + state: absent