diff --git a/ansible-playbooks/common/reboot-hosts.yml b/ansible-playbooks/common/reboot-hosts.yml new file mode 100644 index 0000000..203db41 --- /dev/null +++ b/ansible-playbooks/common/reboot-hosts.yml @@ -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