Fix reboot
This commit is contained in:
parent
0de0ec7ded
commit
9411679004
|
@ -62,17 +62,15 @@
|
||||||
when: debian_version|int >= 11 and cpu_tuning is defined
|
when: debian_version|int >= 11 and cpu_tuning is defined
|
||||||
|
|
||||||
- name: restart server on first install
|
- name: restart server on first install
|
||||||
shell: 'sleep 3 && shutdown -r now "Ansible updates triggered"'
|
reboot:
|
||||||
async: 1
|
post_reboot_delay: 30
|
||||||
poll: 0
|
reboot_timeout: 1800
|
||||||
ignore_errors: yes
|
|
||||||
become: yes
|
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- name: wait 30 seconds for system to stabilize
|
- name: wait 90 seconds for system to stabilize
|
||||||
pause:
|
pause:
|
||||||
seconds: 30
|
seconds: 90
|
||||||
become: no
|
become: no
|
||||||
connection: local
|
connection: local
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
|
Loading…
Reference in New Issue