Closed Milosz-Galecki-wttech closed 2 months ago
Unfortunately there is not much we can do at this point. What is happening is:
win_updates
API find update KB5034439 as an update ready to installSomething is causing the update to rollback on the reboot stage so when we go to check subsequent updates to install it is found as needed and it is installed again. To avoid hanging the task forever we have a check after each install attempt post reboot to see if it installed the same updates as before. The module has no oversight over the rollback stage, it can only see the update is ready to be installed.
The only recourse for yourself here is
reboot: True
so this loop doesn't happen
None of the options are ideal but our hands are tied by the API that Microsoft exposes here.
This might be an issue not related to Ansible, but it's a bug in that specific KB.
Thanks for sharing, it sounds like it is the cause behind this KB failing.
SUMMARY
I'm trying to update two freshly installed Windows 2022 servers, but it keeps failing on the same update KB5034439
ISSUE TYPE
COMPONENT NAME
win_updates
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Windows Server 2022 Standard
STEPS TO REPRODUCE
Install new Windows Server 2022 Standard and try to patch it to the latest state via ansible.
EXPECTED RESULTS
All available patches get installed successfully
ACTUAL RESULTS
Update failes