diff --git a/ansible-playbooks/common/reboot-hosts.yml b/ansible-playbooks/common/reboot-hosts.yml index 1c4d6d5..fad6667 100644 --- a/ansible-playbooks/common/reboot-hosts.yml +++ b/ansible-playbooks/common/reboot-hosts.yml @@ -5,6 +5,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: Trigger reboot with a slight delay ansible.builtin.shell: "sleep 15 && shutdown -r now" async: 1