Added wait task to vpn playbook #17

Merged
khwezi merged 1 commits from dev into main 2026-04-11 16:39:58 +02:00
Showing only changes of commit 9ab8b1e508 - Show all commits

View File

@@ -5,6 +5,11 @@
become_method: sudo become_method: sudo
tasks: 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 - name: Trigger reboot with a slight delay
ansible.builtin.shell: "sleep 15 && shutdown -r now" ansible.builtin.shell: "sleep 15 && shutdown -r now"
async: 1 async: 1