diff --git a/reboot.sh b/reboot.sh new file mode 100644 index 0000000..c247cf5 --- /dev/null +++ b/reboot.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +ansible-playbook reboot.yml -i inventory/my-cluster/hosts.ini diff --git a/reboot.yml b/reboot.yml new file mode 100644 index 0000000..38911b8 --- /dev/null +++ b/reboot.yml @@ -0,0 +1,9 @@ +--- +- name: Reboot k3s_cluster + hosts: k3s_cluster + gather_facts: yes + become: yes + tasks: + - name: Reboot the nodes (and Wait upto 5 mins max) + reboot: + reboot_timeout: 300