-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win_updates "state: searched" option does actually install updates #432
Comments
Hmm this is alarming but I'm unsure how it is happening. We do an explicit check for ansible.windows/plugins/modules/win_updates.ps1 Lines 1392 to 1395 in 43cf617
ansible_log for a run where this happens?
|
Hi Jordan I attach a log of the task here win_updates.txt There we can see it begins the reboot:
At the end the result is:
It seems weird that it reboots even if the result is |
Grr, At a glance it looks like the action needs an early bailout in the case of |
Looking at your output it seems like the current problem here is caused by 2 different issues (which have been fixed). The first run the
This is the issue #411 which has been fixed by #414. On a failure the On the 2nd round after the reboot it is failing to find the temporary path created by the action plugin which due to your host's use of So by upgrading your
Both times the action plugin will kick off a reboot, but only when Now there is still a bug here, the 2nd failure around the temp folder should have cause an error and get returned back to the caller so they know what the problem actually was. I'll need to look into that a bit more to see what I can find out. Updating the docs around the TLDR: the immediate issue has been fixed and is in the |
Thanks Jordan and Matt, we updated the collection yesterday so I hope it will solve most of the issues we have. I will also make sure we don't have a |
SUMMARY
win_updates module has the option to just search for updates and not install them. However, when used, the server actually updates and reboots.
ISSUE TYPE
COMPONENT NAME
win_updates
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Target OS: Microsoft Windows Server 2016 Standard
Powershell version: 5
Connection Type: PSRP
STEPS TO REPRODUCE
EXPECTED RESULTS
Server looks for available updates and shows them. It does not update.
ACTUAL RESULTS
Server is updated and rebooted.
Thanks!
The text was updated successfully, but these errors were encountered: