From 9cf0d18d388dc8d7c41f8bfd344b383267770ca4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 28 Aug 2023 23:42:46 -0400 Subject: [PATCH] Fix reboot --- roles/pvc/tasks/main.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/roles/pvc/tasks/main.yml b/roles/pvc/tasks/main.yml index 340aadc..ca69b06 100644 --- a/roles/pvc/tasks/main.yml +++ b/roles/pvc/tasks/main.yml @@ -62,17 +62,15 @@ when: debian_version|int >= 11 and cpu_tuning is defined - name: restart server on first install - shell: 'sleep 3 && shutdown -r now "Ansible updates triggered"' - async: 1 - poll: 0 - ignore_errors: yes - become: yes + reboot: + post_reboot_delay: 30 + reboot_timeout: 1800 when: newhost is defined and newhost tags: always -- name: wait 30 seconds for system to stabilize +- name: wait 90 seconds for system to stabilize pause: - seconds: 30 + seconds: 90 become: no connection: local when: newhost is defined and newhost