hi,
i tried to update some sql-servers with ansible (awx).
overall it worked fine, but some updates (latest sql-server 2016 sp2 and .bnet-framework) werde detected referring to windows updsate logfile but not installed.
whe installing those updates manually on some servers ifound further updates for office that have not been installed.
how can i install those updates by windows update module in ansible? i tried different categories for the update, but it didn’t change anything.
any help would be appreciated.
I’d suggest removing the category_names and server_selection fields and see if the missing patches are applied. I don’t do Windows patching, but it might be that the “sql server sp2 gdr” is in a different category or server selection.
The “category_names” looks like it is a dynamic list that is dependent on the Windows system being patched. The documentation for the “win_updates” module states that the possible category names can be produced by running the module in “state=searched” - possibly that would help you find a missing category name?
When the category is not set the default is used, which is [“CriticalUpdates”, “SecurityUpdates”, “UpdateRollups”].
will try with state=searched and test if the update is installed with the category set what state=searched gives me.