mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
29 lines
565 B
YAML
29 lines
565 B
YAML
---
|
|
- name: Disable services
|
|
service:
|
|
name: k3s
|
|
state: stopped
|
|
enabled: no
|
|
|
|
- name: Umount k3s filesystems
|
|
include_tasks: umount_with_children.yml
|
|
with_items:
|
|
- /run/k3s
|
|
- /var/lib/kubelet
|
|
- /run/netns
|
|
- /var/lib/rancher/k3s
|
|
loop_control:
|
|
loop_var: mounted_fs
|
|
|
|
- name: Remove service files, binaries and data
|
|
file:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- /etc/init.d/k3s
|
|
- /etc/runlevels/default/k3s
|
|
- /etc/rancher/k3s
|
|
- /var/lib/rancher/k3s
|
|
- /var/lib/kubelet
|
|
- /usr/local/bin/k3s
|