fix: remove cluster rollout playbook for now since it doesn't work and I don't know how to make it work

This commit is contained in:
Devin Buhl authored and GitHub committed 2023-01-13 14:47:30 -05:00
1 parent 509a4fed4e
commit 4b9b69eb41
1 file changed
-34
@@ -1,34 +0,0 @@
---
- name: Cluster Rollout Reboot
hosts:
- master
- worker
become: true
gather_facts: true
any_errors_fatal: true
serial: 1
pre_tasks:
- name: Pausing for 5 seconds...
ansible.builtin.pause:
seconds: 5
tasks:
- name: Draining node (this might take awhile)
kubernetes.core.k8s_drain:
state: drain
name: "{{ inventory_hostname }}"
delete_options:
delete_emptydir_data: true
ignore_daemonsets: true
force: true
terminate_grace_period: 900
notify: Reboot
- name: Uncordoning node
kubernetes.core.k8s_drain:
state: uncordon
name: "{{ inventory_hostname }}"
handlers:
- name: Reboot
ansible.builtin.reboot:
msg: Rebooting nodes
reboot_timeout: 3600