mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Add Alpine reset configuration
This commit is contained in:
28
roles/reset/tasks/prereq/Alpine.yml
Normal file
28
roles/reset/tasks/prereq/Alpine.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user