From f892029fcf21ea54ac67c04ab6fec9027a4f1680 Mon Sep 17 00:00:00 2001 From: automationxpert <70540068+automationxpert@users.noreply.github.com> Date: Sun, 6 Nov 2022 11:24:29 +0530 Subject: [PATCH] Adding additional reboot (optional) (#139) * Create reboot.yml * Create reboot.sh * Updated the Playbook and Tasks Name Co-authored-by: Techno Tim --- reboot.sh | 3 +++ reboot.yml | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 reboot.sh create mode 100644 reboot.yml 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