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
|
seconds: 5
|
||||||
tasks:
|
tasks:
|
||||||
- name: Uninstall Cilium
|
- name: Uninstall Cilium
|
||||||
|
when:
|
||||||
|
- k3s_control_node is defined
|
||||||
|
- k3s_control_node
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
cilium uninstall --wait
|
cilium uninstall --wait
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
|
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
|
||||||
|
|
||||||
|
- name: Prevent k3s from starting on reboot
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: k3s
|
||||||
|
enabled: false
|
||||||
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
msg: Rebooting nodes
|
msg: Rebooting nodes
|
||||||
|
|||||||
Reference in new issue
Block a user