mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
win_updates Add information/example wrt. reboots (#49834)
This documents two common issues related to rebooting Windows systems. - Updates can take a long time being applied during reboot - Reboots can cause the WinRM service to start before system has settled
This commit is contained in:
parent
e944dba166
commit
994ce2126a
2 changed files with 23 additions and 7 deletions
|
@ -87,17 +87,18 @@ EXAMPLES = r'''
|
|||
win_reboot:
|
||||
when: iis_install.reboot_required
|
||||
|
||||
# One way to ensure the system is reliable, is to add a delay before running the next task
|
||||
- name: Reboot a machine that takes time to settle after being booted
|
||||
win_reboot:
|
||||
post_reboot_delay: 120
|
||||
|
||||
# Alternatively, you can set WinRM to a delayed startup
|
||||
# One way to ensure the system is reliable, is to set WinRM to a delayed startup
|
||||
- name: Ensure WinRM starts when the system has settled and is ready to work reliably
|
||||
win_service:
|
||||
name: WinRM
|
||||
start_mode: delayed
|
||||
|
||||
|
||||
# Additionally, you can add a delay before running the next task
|
||||
- name: Reboot a machine that takes time to settle after being booted
|
||||
win_reboot:
|
||||
post_reboot_delay: 120
|
||||
|
||||
# Or you can make win_reboot validate exactly what you need to work before running the next task
|
||||
- name: Validate that the netlogon service has started, before running the next task
|
||||
win_reboot:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue