From 82a72307e487744121817f6756b85ab880680475 Mon Sep 17 00:00:00 2001 From: Khwezi Date: Sat, 11 Apr 2026 16:45:47 +0200 Subject: [PATCH] Removed async from reboot playbook and set it to delay reboot for 5 seconds --- ansible-playbooks/common/reboot-hosts.yml | 9 ++------- ansible-playbooks/update-vpn.yml | 5 +++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ansible-playbooks/common/reboot-hosts.yml b/ansible-playbooks/common/reboot-hosts.yml index fad6667..82ba5fa 100644 --- a/ansible-playbooks/common/reboot-hosts.yml +++ b/ansible-playbooks/common/reboot-hosts.yml @@ -5,14 +5,9 @@ become_method: sudo tasks: - - name: Wait for VPN host to be ready after reboot - ansible.builtin.wait_for_connection: - delay: 5 - timeout: 300 - - name: Trigger reboot with a slight delay - ansible.builtin.shell: "sleep 15 && shutdown -r now" - async: 1 + ansible.builtin.shell: "sleep 5 && reboot" + async: 0 poll: 0 ignore_errors: true diff --git a/ansible-playbooks/update-vpn.yml b/ansible-playbooks/update-vpn.yml index 1754f13..d1810db 100644 --- a/ansible-playbooks/update-vpn.yml +++ b/ansible-playbooks/update-vpn.yml @@ -6,6 +6,11 @@ become_method: sudo tasks: + - name: Wait for VPN host to be ready after reboot + ansible.builtin.wait_for_connection: + delay: 5 + timeout: 300 + - name: Update Pi-hole ansible.builtin.shell: pihole -up args: