Files
k3s-ansible/roles/reset/tasks/prereq/Alpine.yml
2020-12-28 15:58:16 +01:00

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