mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-09-29 04:07:30 +02:00
f369e3a015
* Simplify reset playbook Signed-off-by: Derek Nola <derek.nola@suse.com> * Cleanup ansible_user kubeconfig Signed-off-by: Derek Nola <derek.nola@suse.com> --------- Signed-off-by: Derek Nola <derek.nola@suse.com>
15 lines
372 B
YAML
15 lines
372 B
YAML
---
|
|
- 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
|