Skip to content

Commit

Permalink
Simplify reset playbook (#230)
Browse files Browse the repository at this point in the history
* Simplify reset playbook

Signed-off-by: Derek Nola <[email protected]>

* Cleanup ansible_user kubeconfig

Signed-off-by: Derek Nola <[email protected]>

---------

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Nov 9, 2023
1 parent dfc23c8 commit f369e3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 68 deletions.
11 changes: 9 additions & 2 deletions playbook/reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
hosts: k3s_cluster
gather_facts: true
become: true
roles:
- role: reset
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
50 changes: 0 additions & 50 deletions roles/reset/tasks/main.yml

This file was deleted.

16 changes: 0 additions & 16 deletions roles/reset/tasks/umount_with_children.yml

This file was deleted.

0 comments on commit f369e3a

Please sign in to comment.