k3s-ansible/playbooks/reboot.yml
Derek Nola 5a12415b3c
Rename playbook to playbooks for ansible collection support (#333)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2024-06-04 10:36:35 -07: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: