From 353deb039d428ad484389b19f11ff0314ea90dc7 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 16:21:20 +0200 Subject: [PATCH 1/4] Lite refactor --- ansible-playbooks/update-vpn.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible-playbooks/update-vpn.yml b/ansible-playbooks/update-vpn.yml index 2263196..1754f13 100644 --- a/ansible-playbooks/update-vpn.yml +++ b/ansible-playbooks/update-vpn.yml @@ -23,3 +23,4 @@ - name: Debug Output (Optional) ansible.builtin.debug: msg: "{{ pivpn_diag.stdout_lines }}" + \ No newline at end of file -- 2.47.3 From d23a23860c52b4cbf77b5530adbaf98ab2ca3995 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 16:22:08 +0200 Subject: [PATCH 2/4] Light refactor --- ansible-playbooks/update-vpn.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ansible-playbooks/update-vpn.yml b/ansible-playbooks/update-vpn.yml index 1754f13..2263196 100644 --- a/ansible-playbooks/update-vpn.yml +++ b/ansible-playbooks/update-vpn.yml @@ -23,4 +23,3 @@ - name: Debug Output (Optional) ansible.builtin.debug: msg: "{{ pivpn_diag.stdout_lines }}" - \ No newline at end of file -- 2.47.3 From 160a93d93f1fae08594d8e959b08aa040b15fa42 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 16:27:54 +0200 Subject: [PATCH 3/4] Test refactor --- ansible-playbooks/update-vpn.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible-playbooks/update-vpn.yml b/ansible-playbooks/update-vpn.yml index 2263196..1754f13 100644 --- a/ansible-playbooks/update-vpn.yml +++ b/ansible-playbooks/update-vpn.yml @@ -23,3 +23,4 @@ - name: Debug Output (Optional) ansible.builtin.debug: msg: "{{ pivpn_diag.stdout_lines }}" + \ No newline at end of file -- 2.47.3 From 421128b5346e56d069ba4874818a1556ed6d6c20 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 16:33:37 +0200 Subject: [PATCH 4/4] Refactored reboot playbook to create a 15 second delay and to run in async mode --- ansible-playbooks/common/reboot-hosts.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ansible-playbooks/common/reboot-hosts.yml b/ansible-playbooks/common/reboot-hosts.yml index 203db41..1c4d6d5 100644 --- a/ansible-playbooks/common/reboot-hosts.yml +++ b/ansible-playbooks/common/reboot-hosts.yml @@ -5,11 +5,11 @@ 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 + - name: Trigger reboot with a slight delay + ansible.builtin.shell: "sleep 15 && shutdown -r now" + async: 1 + poll: 0 + ignore_errors: true + + - name: Reboot command issues, exiting play + ansible.builtin.meta: end_host -- 2.47.3