mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-06 13:53:29 +01:00
17 lines
390 B
YAML
17 lines
390 B
YAML
---
|
|
|
|
- name: "Run k3s-killall.sh"
|
|
command: k3s-killall.sh
|
|
register: k3s_killall
|
|
changed_when: k3s_killall.rc == 0
|
|
|
|
- name: "Run k3s-uninstall.sh"
|
|
command:
|
|
cmd: k3s-uninstall.sh
|
|
removes: /usr/local/bin/k3s-uninstall.sh
|
|
register: k3s_uninstall
|
|
changed_when: k3s_uninstall.rc == 0
|
|
|
|
- name: "Clean up Docker"
|
|
command: docker system prune -a --force
|
|
when: k3s_use_docker
|