fix: speed up nuke playbook by preventing k3s from starting on next reboot
This commit is contained in:
1 parent
8db5c1abcd
commit
3c0f5554a9
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user