Added wait task to vpn playbook #17
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user