From 88c5e5bf3e1ac795406185bc20b3fd933d50575d Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 14:57:42 +0200 Subject: [PATCH] Added playbook that reboots hosts --- ansible-playbooks/common/reboot-hosts.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ansible-playbooks/common/reboot-hosts.yml 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