fix: speed up nuke playbook by preventing k3s from starting on next reboot

This commit is contained in:
Devin Buhl authored and GitHub committed 2023-05-30 17:19:58 -04:00
1 parent 8db5c1abcd
commit 3c0f5554a9
1 file changed
+8
+8
View File
@@ -23,11 +23,19 @@
seconds: 5
tasks:
- name: Uninstall Cilium
when:
- k3s_control_node is defined
- k3s_control_node
ansible.builtin.shell: |
cilium uninstall --wait
environment:
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
- name: Prevent k3s from starting on reboot
ansible.builtin.systemd:
name: k3s
enabled: false
- name: Reboot
ansible.builtin.reboot:
msg: Rebooting nodes