k3s-ansible/playbook/reboot.yml
Nicholas Malcolm 7cc70ad609 HA fixes and code tweaks
- Reboot playbook updated for HA testing
- Small adjustment made after testing HA with playbook
- Fix reset playbook failing in some cases

Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-11-08 10:23:56 -08:00

20 lines
369 B
YAML

---
- name: Reboot cluster servers staggered
hosts: server
become: true
gather_facts: true
serial: 1
tasks:
- name: Reboot
ansible.builtin.reboot:
test_command: kubectl get nodes
- name: Reboot cluster agents staggered
hosts: agent
become: true
gather_facts: true
serial: 1
tasks:
- name: Reboot
ansible.builtin.reboot: