mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Fix issue around using ip addresses in inventory, download and remove agent service properly
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -4,10 +4,16 @@
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: Run K3s Uninstall script
|
||||
- name: Run K3s Uninstall script [server]
|
||||
when: "'server' in group_names"
|
||||
ansible.builtin.command:
|
||||
cmd: k3s-uninstall.sh
|
||||
removes: /var/lib/rancher/k3s/*
|
||||
- name: Run K3s Uninstall script [agent]
|
||||
when: "'agent' in group_names"
|
||||
ansible.builtin.command:
|
||||
cmd: k3s-agent-uninstall.sh
|
||||
removes: /var/lib/rancher/k3s/*
|
||||
- name: Remove user kubeconfig
|
||||
ansible.builtin.file:
|
||||
path: /home/{{ ansible_user }}/.kube/config
|
||||
|
||||
Reference in New Issue
Block a user