# Install all security, critical, and rollup updates-win_updates:category_names:-SecurityUpdates-CriticalUpdates-UpdateRollups# Install only security updates-win_updates:category_names:SecurityUpdates# Search-only, return list of found updates (if any), log to c:\ansible_wu.txt-win_updates:category_names:SecurityUpdatesstate:searchedlog_path:c:\ansible_wu.txt
win_updates must be run by a user with membership in the local Administrators group
win_updates will use the default update service configured for the machine (Windows Update, Microsoft Update, WSUS, etc)
win_updates does not manage reboots, but will signal when a reboot is required with the reboot_required return value.
win_updates can take a significant amount of time to complete (hours, in some cases). Performance depends on many factors, including OS version, number of updates, system load, and update server load.
win_updates runs the module as a scheduled task, this task is set to start and continue to run even if the Windows host swaps to battery power. This behaviour was changed from Ansible 2.4, before this the scheduled task would fail to start on battery power.
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>