Adding additional reboot (optional) (#139)
* Create reboot.yml * Create reboot.sh * Updated the Playbook and Tasks Name Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
parent
6b37ba5e60
commit
f892029fcf
3
reboot.sh
Normal file
3
reboot.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ansible-playbook reboot.yml -i inventory/my-cluster/hosts.ini
|
||||||
9
reboot.yml
Normal file
9
reboot.yml
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user