New in version 2.1.
Maximum seconds to wait for a single successful TCP connection to the WinRM endpoint before trying again
||no||Reboot initiated by Ansible|
Message to display to users
Seconds for shutdown to wait before requesting reboot
Maximum seconds to wait for machine to re-appear on the network and respond to a test command
This timeout is evaluated separately for both network appearance and test command success (so maximum clock time is actually twice this value)
Maximum seconds to wait for shutdown to occur
Increase this timeout for very slow hardware, large update applications, etc
Command to expect success for to determine the machine is ready for management
# Unconditionally reboot the machine with all defaults - win_reboot: # Apply updates and reboot if necessary - win_updates: register: update_result - win_reboot: when: update_result.reboot_required # Reboot a slow machine that might have lots of updates to apply - win_reboot: shutdown_timeout_sec: 3600 reboot_timeout_sec: 3600
Common return values are documented here Return Values, the following are the fields unique to this module:
|rebooted||true if the machine was rebooted||always||boolean||True|
win_rebootwill abort the scheduled shutdown and enforce its own shutdown.
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.