Removed async from reboot playbook and set it to delay reboot for 5 seconds

This commit is contained in:
Khwezi
2026-04-11 16:45:47 +02:00
parent 9ab8b1e508
commit 82a72307e4
2 changed files with 7 additions and 7 deletions

View File

@@ -5,14 +5,9 @@
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 5 && reboot"
async: 1 async: 0
poll: 0 poll: 0
ignore_errors: true ignore_errors: true

View File

@@ -6,6 +6,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: Update Pi-hole - name: Update Pi-hole
ansible.builtin.shell: pihole -up ansible.builtin.shell: pihole -up
args: args: