Skip to content

Commit

Permalink
Adding additional reboot (optional) (techno-tim#139)
Browse files Browse the repository at this point in the history
* Create reboot.yml

* Create reboot.sh

* Updated the Playbook and Tasks Name

Co-authored-by: Techno Tim <timothystewart6@gmail.com>
  • Loading branch information
automationxpert and timothystewart6 authored Nov 6, 2022
1 parent 6b37ba5 commit f892029
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reboot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

ansible-playbook reboot.yml -i inventory/my-cluster/hosts.ini
9 changes: 9 additions & 0 deletions reboot.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f892029

Please sign in to comment.