# win\_updates keeps failing on some updates

**URL:** <https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207>\
**Category:** Ansible Project\
**Created:** [September 5, 2019, 2:34pm UTC](https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207 "2019-09-05T14:34:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tuyen\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Post date:** [September 5, 2019, 2:34pm UTC](https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207/1 "2019-09-05T14:34:37Z")

</div>

I am using win\_updates to deploy patches to machines, and I have a whole list of patches to deploy to machines in a whitelist.

I am seeing an issue sometimes where the machine I try to deploy the patches to is getting Download Result 4 error, and the win\_updates module fails to complete.

As an example, I have a list of patches to install, and I get KB2813430 is causing Download Result 4 error. I remove that patch from the list, and I re-run the win\_updates, and it works, and then afterwards, when I try to run the win\_updates with that KB2813430 patch again, it works. It seems like there is some unresolved dependencies in the order of which the patches get installed with the Ansible module does not know about?

---

<div class="post-metadata">

**Author:** ![cupcake](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@cupcake](https://forum.ansible.com/u/cupcake)\
**Post date:** [September 6, 2019, 1:01am UTC](https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207/2 "2019-09-06T01:01:05Z")

</div>

I’ve seen some weirdness on windows update with ansible before and usually use a register (test with a debug to see the return values) and do a retry every 60-90s 10x with an until: statement based on the register returning found\_update\_count: 0 or something of that nature. I don’t have an exact copy of whatever it was that was working anywhere to share at the moment, but if you play around with some of the return values, I’m sure you can find a method to achieve a successful outcome.
