Added playbook that reboots hosts
This commit is contained in:
15
ansible-playbooks/common/reboot-hosts.yml
Normal file
15
ansible-playbooks/common/reboot-hosts.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- name: Reboot Managed Hosts
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
become_method: sudo
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Trigger system reboot
|
||||||
|
ansible.builtin.reboot:
|
||||||
|
msg: "Reboot initiated by Semaphore UI"
|
||||||
|
connect_timeout: 5
|
||||||
|
reboot_timeout: 600
|
||||||
|
pre_reboot_delay: 0
|
||||||
|
post_reboot_delay: 30
|
||||||
|
test_command: whoami
|
||||||
Reference in New Issue
Block a user