mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-11-13 10:13:58 +01:00
27 lines
506 B
YAML
27 lines
506 B
YAML
---
|
|
- name: Disable services
|
|
systemd:
|
|
name: "{{ item }}"
|
|
state: stopped
|
|
enabled: no
|
|
failed_when: false
|
|
with_items:
|
|
- k3s
|
|
- k3s-node
|
|
|
|
- name: Remove service files, binaries and data
|
|
file:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- "{{ systemd_dir }}/k3s.service"
|
|
- "{{ systemd_dir }}/k3s-node.service"
|
|
- /etc/rancher/k3s
|
|
- /var/lib/rancher/k3s
|
|
- /var/lib/kubelet
|
|
- /usr/local/bin/k3s
|
|
|
|
- name: daemon_reload
|
|
systemd:
|
|
daemon_reload: yes
|