# win\_updates fail

**URL:** <https://forum.ansible.com/t/win-updates-fail/27540>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 16, 2018, 6:54am UTC](https://forum.ansible.com/t/win-updates-fail/27540 "2018-05-16T06:54:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbmprivat](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Post date:** [May 16, 2018, 6:54am UTC](https://forum.ansible.com/t/win-updates-fail/27540/1 "2018-05-16T06:54:59Z")

</div>

Hi there,

I’m using the win\_updates module but the module fails to install any updates.

`

- name: Install all security, critical, and rollup updates  
block:
- win\_updates:  
category\_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups  
reboot: yes  
register: job\_log  
rescue:
- debug:  
msg: ‘Installing updates failed.’

`

`

PLAY [WINSERVERS] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [TMCQAMON]

TASK [windows-patch-management : win\_updates] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [TMCQAMON]: FAILED! =\> {“changed”: false, “filtered\_updates”: {}, “found\_update\_count”: 72, “installed\_update\_count”: 0, “msg”: "Failed to download update (1 of 72) 093f23cb-1c30-413c-8480-66677ce8b024 - Security Update for Windows Server 2012 R2 (KB2973201): Download Result ", “reboot\_required”: false, “updates”: {“02b62bb0-33b2-4585-8945-0f0a711b909e”: {“id”: “02b62bb0-33b2-4585-8945-0f0a711b909e”, “installed”: false, “kb”: [“2966826”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2966826)”}, “02ee413c-7bbb-4fe0-bd97-9e931a2208e1”: {“id”: “02ee413c-7bbb-4fe0-bd97-9e931a2208e1”, “installed”: false, “kb”: [“3055642”], “title”: “Security Update for Windows Server 2012 R2 (KB3055642)”}, “04f04253-f803-43b8-8b37-6841c614dd9f”: {“id”: “04f04253-f803-43b8-8b37-6841c614dd9f”, “installed”: false, “kb”: [“3084135”], “title”: “Security Update for Windows Server 2012 R2 (KB3084135)”}, “05ba4c3c-81c2-4c19-9899-a4a18716cddb”: {“id”: “05ba4c3c-81c2-4c19-9899-a4a18716cddb”, “installed”: false, “kb”: [“3156059”], “title”: “Security Update for Windows Server 2012 R2 (KB3156059)”}, “06eae584-188d-4a35-805a-ef98beddcd3d”: {“id”: “06eae584-188d-4a35-805a-ef98beddcd3d”, “installed”: false, “kb”: [“3139914”], “title”: “Security Update for Windows Server 2012 R2 (KB3139914)”}, “086110f9-6500-4ada-902d-7861cd2cd90b”: {“id”: “086110f9-6500-4ada-902d-7861cd2cd90b”, “installed”: false, “kb”: [“3000850”], “title”: “Update for Windows Server 2012 R2 (KB3000850)”}, “093f23cb-1c30-413c-8480-66677ce8b024”: {“id”: “093f23cb-1c30-413c-8480-66677ce8b024”, “installed”: false, “kb”: [“2973201”], “title”: “Security Update for Windows Server 2012 R2 (KB2973201)”}, “1a5e6145-cb66-47c4-90da-e8788f8495ae”: {“id”: “1a5e6145-cb66-47c4-90da-e8788f8495ae”, “installed”: false, “kb”: [“3008242”], “title”: “Update for Windows Server 2012 R2 (KB3008242)”}, “1b7f8001-ed5b-4e14-b712-ebf5d45b3e0e”: {“id”: “1b7f8001-ed5b-4e14-b712-ebf5d45b3e0e”, “installed”: false, “kb”: [“2981580”], “title”: “Update for Windows Server 2012 R2 (KB2981580)”}, “1bc49ccc-409b-4d07-93b7-cea850ea0d78”: {“id”: “1bc49ccc-409b-4d07-93b7-cea850ea0d78”, “installed”: false, “kb”: [“3133043”], “title”: “Security Update for Windows Server 2012 R2 (KB3133043)”}, “209e2d1e-330f-4dcc-b705-5999c2f38385”: {“id”: “209e2d1e-330f-4dcc-b705-5999c2f38385”, “installed”: false, “kb”: [“3146723”], “title”: “Security Update for Windows Server 2012 R2 (KB3146723)”}, “20d1a457-eca7-488d-a870-96d7374cb436”: {“id”: “20d1a457-eca7-488d-a870-96d7374cb436”, “installed”: false, “kb”: [“3155784”], “title”: “Security Update for Windows Server 2012 R2 (KB3155784)”}, “214b1f40-24ed-4dae-9e76-237763c5c8ca”: {“id”: “214b1f40-24ed-4dae-9e76-237763c5c8ca”, “installed”: false, “kb”: [“3126587”], “title”: “Security Update for Windows Server 2012 R2 (KB3126587)”}, “228676f3-8545-444c-a7e0-4df7b9c2b4d6”: {“id”: “228676f3-8545-444c-a7e0-4df7b9c2b4d6”, “installed”: false, “kb”: [“2972213”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2972213)”}, “2628719c-4abd-46e2-93e8-fe53c19c3117”: {“id”: “2628719c-4abd-46e2-93e8-fe53c19c3117”, “installed”: false, “kb”: [“3019978”], “title”: “Security Update for Windows Server 2012 R2 (KB3019978)”}, “27ae312b-1b1a-4f18-a574-3dfe46244d3a”: {“id”: “27ae312b-1b1a-4f18-a574-3dfe46244d3a”, “installed”: false, “kb”: [“3110329”], “title”: “Security Update for Windows Server 2012 R2 (KB3110329)”}, “29285f0e-278a-4fb1-ad27-ed672ddeaff2”: {“id”: “29285f0e-278a-4fb1-ad27-ed672ddeaff2”, “installed”: false, “kb”: [“3010788”], “title”: “Security Update for Windows Server 2012 R2 (KB3010788)”}, “35d46cea-1bc1-4d7f-8bf9-adaaeb5a7bf5”: {“id”: “35d46cea-1bc1-4d7f-8bf9-adaaeb5a7bf5”, “installed”: false, “kb”: [“3072307”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB3072307)”}, “36696f1a-eb7a-48db-a69b-fae68b1fbf58”: {“id”: “36696f1a-eb7a-48db-a69b-fae68b1fbf58”, “installed”: false, “kb”: [“3045755”], “title”: “Security Update for Windows Server 2012 R2 (KB3045755)”}, “3827a9e8-65af-444e-bbef-94e3591dbc0f”: {“id”: “3827a9e8-65af-444e-bbef-94e3591dbc0f”, “installed”: false, “kb”: [“3011780”], “title”: “Security Update for Windows Server 2012 R2 (KB3011780)”}, “3ae68db3-72a1-4f93-8e68-75bb8e07823e”: {“id”: “3ae68db3-72a1-4f93-8e68-75bb8e07823e”, “installed”: false, “kb”: [“2967917”], “title”: “Update for Windows Server 2012 R2 (KB2967917)”}, “3ce61d87-7153-4540-a74b-fd0065edfdde”: {“id”: “3ce61d87-7153-4540-a74b-fd0065edfdde”, “installed”: false, “kb”: [“3126593”], “title”: “Security Update for Windows Server 2012 R2 (KB3126593)”}, “3d2c6725-e2cc-4566-8235-34dd32369599”: {“id”: “3d2c6725-e2cc-4566-8235-34dd32369599”, “installed”: false, “kb”: [“3102939”], “title”: “Security Update for Windows Server 2012 R2 (KB3102939)”}, “3fea2186-fb39-41f1-9214-55a5bb5552e6”: {“id”: “3fea2186-fb39-41f1-9214-55a5bb5552e6”, “installed”: false, “kb”: [“3035126”], “title”: “Security Update for Windows Server 2012 R2 (KB3035126)”}, “4361108d-d09b-4c4d-8b2f-f1167f7b8c57”: {“id”: “4361108d-d09b-4c4d-8b2f-f1167f7b8c57”, “installed”: false, “kb”: [“3000483”], “title”: “Security Update for Windows Server 2012 R2 (KB3000483)”}, “44ecac30-a0b2-446c-966d-77f6e158ed0b”: {“id”: “44ecac30-a0b2-446c-966d-77f6e158ed0b”, “installed”: false, “kb”: [“3037576”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB3037576)”}, “4678f8b9-0b81-4f8b-853f-4adfed9262a6”: {“id”: “4678f8b9-0b81-4f8b-853f-4adfed9262a6”, “installed”: false, “kb”: [“3045999”], “title”: “Security Update for Windows Server 2012 R2 (KB3045999)”}, “4809ef80-5f6e-4ef0-a4c3-da892c1e2361”: {“id”: “4809ef80-5f6e-4ef0-a4c3-da892c1e2361”, “installed”: false, “kb”: [“3173424”], “title”: “Update for Windows Server 2012 R2 (KB3173424)”}, “4b7876f0-b962-4c4c-9e45-fe35b0c801ce”: {“id”: “4b7876f0-b962-4c4c-9e45-fe35b0c801ce”, “installed”: false, “kb”: [“3046017”], “title”: “Security Update for Windows Server 2012 R2 (KB3046017)”}, “4c5975a7-b9e3-4ef5-aec3-64c65a5c052e”: {“id”: “4c5975a7-b9e3-4ef5-aec3-64c65a5c052e”, “installed”: false, “kb”: [“2976897”], “title”: “Security Update for Windows Server 2012 R2 (KB2976897)”}, “4f7edcbb-36dd-440e-abd7-ed6646154c00”: {“id”: “4f7edcbb-36dd-440e-abd7-ed6646154c00”, “installed”: false, “kb”: [“890830”], “title”: “Windows Malicious Software Removal Tool x64 - May 2018 (KB890830)”}, “506662d1-d120-4f0f-820d-9a49155e5553”: {“id”: “506662d1-d120-4f0f-820d-9a49155e5553”, “installed”: false, “kb”: [“3023219”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB3023219)”}, “54110383-c46c-4424-a8ef-9cd6b7a20025”: {“id”: “54110383-c46c-4424-a8ef-9cd6b7a20025”, “installed”: false, “kb”: [“3061512”], “title”: “Security Update for Windows Server 2012 R2 (KB3061512)”}, “5414fab1-738f-47aa-9198-c7b902206a48”: {“id”: “5414fab1-738f-47aa-9198-c7b902206a48”, “installed”: false, “kb”: [“3042085”], “title”: “Update for Windows Server 2012 R2 (KB3042085)”}, “57163e5f-434a-4bb4-9b78-de2d56558460”: {“id”: “57163e5f-434a-4bb4-9b78-de2d56558460”, “installed”: false, “kb”: [“2968296”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2968296)”}, “5be19a8d-c6d0-487e-90ea-cbd29982ef68”: {“id”: “5be19a8d-c6d0-487e-90ea-cbd29982ef68”, “installed”: false, “kb”: [“2894852”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2894852)”}, “5d50743b-e648-4acc-8986-a7bc5aa53f71”: {“id”: “5d50743b-e648-4acc-8986-a7bc5aa53f71”, “installed”: false, “kb”: [“3045685”], “title”: “Security Update for Windows Server 2012 R2 (KB3045685)”}, “662c0517-7290-46d3-ab84-4ceec6f7b3bb”: {“id”: “662c0517-7290-46d3-ab84-4ceec6f7b3bb”, “installed”: false, “kb”: [“2978122”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2978122)”}, “67a00639-09a1-4c5f-83ff-394e7601fc03”: {“id”: “67a00639-09a1-4c5f-83ff-394e7601fc03”, “installed”: false, “kb”: [“3161949”], “title”: “Security Update for Windows Server 2012 R2 (KB3161949)”}, “6b6a5779-3fe5-4789-aba6-0c3e9b802b37”: {“id”: “6b6a5779-3fe5-4789-aba6-0c3e9b802b37”, “installed”: false, “kb”: [“3126434”], “title”: “Security Update for Windows Server 2012 R2 (KB3126434)”}, “74f15387-bc02-48be-afda-32caa8940bc7”: {“id”: “74f15387-bc02-48be-afda-32caa8940bc7”, “installed”: false, “kb”: [“2973114”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2973114)”}, “77798aee-dc0e-409a-875c-7134c8a93766”: {“id”: “77798aee-dc0e-409a-875c-7134c8a93766”, “installed”: false, “kb”: [“3175024”], “title”: “Security Update for Windows Server 2012 R2 (KB3175024)”}, “7904f47e-1151-40ff-bbff-e6ac8a87f302”: {“id”: “7904f47e-1151-40ff-bbff-e6ac8a87f302”, “installed”: false, “kb”: [“3044374”], “title”: “Update for Windows Server 2012 R2 (KB3044374)”}, “79ee2dcd-1520-4e81-b3db-d78cb7b400de”: {“id”: “79ee2dcd-1520-4e81-b3db-d78cb7b400de”, “installed”: false, “kb”: [“3097992”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB3097992)”}, “7c5f1dad-2f35-4120-b4ad-c5947edf0567”: {“id”: “7c5f1dad-2f35-4120-b4ad-c5947edf0567”, “installed”: false, “kb”: [“3082089”], “title”: “Security Update for Windows Server 2012 R2 (KB3082089)”}, “8452bac0-bf53-4fbd-915d-499de08c338b”: {“id”: “8452bac0-bf53-4fbd-915d-499de08c338b”, “installed”: false, “kb”: [“2919355”], “title”: “Windows Server 2012 R2 Update (KB2919355)”}, “8822f3f4-3d08-4f88-be01-567ddf9e42b5”: {“id”: “8822f3f4-3d08-4f88-be01-567ddf9e42b5”, “installed”: false, “kb”: [“4099635”], “title”: “2018-05 Security and Quality Rollup for .NET Framework 3.5, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 on Windows 8.1 and Server 2012 R2 for x64 (KB4099635)”}, “8bb29af2-47b2-439e-b999-3176c23a8e8b”: {“id”: “8bb29af2-47b2-439e-b999-3176c23a8e8b”, “installed”: false, “kb”: [“3059317”], “title”: “Security Update for Windows Server 2012 R2 (KB3059317)”}, “8eb35062-4329-448a-8dea-bae6efab76df”: {“id”: “8eb35062-4329-448a-8dea-bae6efab76df”, “installed”: false, “kb”: [“3074545”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB3074545)”}, “8ffb7a9e-cafe-456f-a219-13b3e7a56ed2”: {“id”: “8ffb7a9e-cafe-456f-a219-13b3e7a56ed2”, “installed”: false, “kb”: [“3023266”], “title”: “Security Update for Windows Server 2012 R2 (KB3023266)”}, “931c52a4-931b-45c3-92a3-20cb49eb8982”: {“id”: “931c52a4-931b-45c3-92a3-20cb49eb8982”, “installed”: false, “kb”: [“3092601”], “title”: “Security Update for Windows Server 2012 R2 (KB3092601)”}, “95f3ed06-4300-4cb3-b03b-7cd333ca0a30”: {“id”: “95f3ed06-4300-4cb3-b03b-7cd333ca0a30”, “installed”: false, “kb”: [“3021674”], “title”: “Security Update for Windows Server 2012 R2 (KB3021674)”}, “9720dcb0-a888-4599-a3c7-288386cc255a”: {“id”: “9720dcb0-a888-4599-a3c7-288386cc255a”, “installed”: false, “kb”: [“3077715”], “title”: “Update for Windows Server 2012 R2 (KB3077715)”}, “97561c5e-8fe9-4038-8e3f-1ccc60093309”: {“id”: “97561c5e-8fe9-4038-8e3f-1ccc60093309”, “installed”: false, “kb”: [“3127222”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64 (KB3127222)”}, “9a3be93c-73f7-4c08-8ca7-4f848986f79b”: {“id”: “9a3be93c-73f7-4c08-8ca7-4f848986f79b”, “installed”: false, “kb”: [“3081320”], “title”: “Security Update for Windows Server 2012 R2 (KB3081320)”}, “aa793ff1-f4b7-42b1-9f24-6f11b50f952c”: {“id”: “aa793ff1-f4b7-42b1-9f24-6f11b50f952c”, “installed”: false, “kb”: [“3126041”], “title”: “Security Update for Windows Server 2012 R2 (KB3126041)”}, “ba0f75ff-19c3-4cbd-a3f3-ef5b5c0f88bf”: {“id”: “ba0f75ff-19c3-4cbd-a3f3-ef5b5c0f88bf”, “installed”: false, “kb”: [“3162343”], “title”: “Security Update for Windows Server 2012 R2 (KB3162343)”}, “c1d9a0cb-3414-4566-89e5-ebd364de0130”: {“id”: “c1d9a0cb-3414-4566-89e5-ebd364de0130”, “installed”: false, “kb”: [“3034348”], “title”: “Update for Windows Server 2012 R2 (KB3034348)”}, “c848ed4a-5e2e-43dc-bd1b-cb2f717e90cd”: {“id”: “c848ed4a-5e2e-43dc-bd1b-cb2f717e90cd”, “installed”: false, “kb”: [“3086255”], “title”: “Security Update for Windows Server 2012 R2 (KB3086255)”}, “cdde339c-ebdb-4a16-add4-fb196a5053a8”: {“id”: “cdde339c-ebdb-4a16-add4-fb196a5053a8”, “installed”: false, “kb”: [“3172729”], “title”: “Security Update for Windows Server 2012 R2 (KB3172729)”}, “ced67375-e431-4a8b-9245-52386c04f674”: {“id”: “ced67375-e431-4a8b-9245-52386c04f674”, “installed”: false, “kb”: [“2966828”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2966828)”}, “d928f50f-191e-4858-b546-acda983da182”: {“id”: “d928f50f-191e-4858-b546-acda983da182”, “installed”: false, “kb”: [“3109103”], “title”: “Security Update for Windows Server 2012 R2 (KB3109103)”}, “d9f4e1b5-4477-4d83-8c27-111ce0e88dd8”: {“id”: “d9f4e1b5-4477-4d83-8c27-111ce0e88dd8”, “installed”: false, “kb”: [“3159398”], “title”: “Security Update for Windows Server 2012 R2 (KB3159398)”}, “da014f40-f4dc-4fce-9ce5-4e79ab15279b”: {“id”: “da014f40-f4dc-4fce-9ce5-4e79ab15279b”, “installed”: false, “kb”: [“4054519”], “title”: “2017-12 Security Monthly Quality Rollup for Windows Server 2012 R2 for x64-based Systems (KB4054519)”}, “dc4eb637-5391-4ca8-8f08-98584d61effa”: {“id”: “dc4eb637-5391-4ca8-8f08-98584d61effa”, “installed”: false, “kb”: [“4041085”], “title”: “2017-09 Security and Quality Rollup for .NET Framework 3.5, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 on Windows 8.1 and Server 2012 R2 for x64 (KB4041085)”}, “dd382658-effd-4e24-abca-877e1915bf6d”: {“id”: “dd382658-effd-4e24-abca-877e1915bf6d”, “installed”: false, “kb”: [“3139398”], “title”: “Security Update for Windows Server 2012 R2 (KB3139398)”}, “e90f9283-7304-4a98-a5ec-98bd2a3163e7”: {“id”: “e90f9283-7304-4a98-a5ec-98bd2a3163e7”, “installed”: false, “kb”: [“3178539”], “title”: “Security Update for Windows Server 2012 R2 (KB3178539)”}, “f2ea9a36-a6df-472c-bed2-d7f0a155aff2”: {“id”: “f2ea9a36-a6df-472c-bed2-d7f0a155aff2”, “installed”: false, “kb”: [“4103725”], “title”: “2018-05 Security Monthly Quality Rollup for Windows Server 2012 R2 for x64-based Systems (KB4103725)”}, “f782b6c4-2b86-4eb7-9708-5531bc6c1a8f”: {“id”: “f782b6c4-2b86-4eb7-9708-5531bc6c1a8f”, “installed”: false, “kb”: [“2972103”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2972103)”}, “f7c02df0-0cb8-4a56-b367-7efd5c9bc9ac”: {“id”: “f7c02df0-0cb8-4a56-b367-7efd5c9bc9ac”, “installed”: false, “kb”: [“3071756”], “title”: “Security Update for Windows Server 2012 R2 (KB3071756)”}, “f82f159c-02c4-480c-bda4-6c8eacfc3cba”: {“id”: “f82f159c-02c4-480c-bda4-6c8eacfc3cba”, “installed”: false, “kb”: [“3122651”], “title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64 (KB3122651)”}, “fb95c1c8-de23-4089-ae29-fd3351d55421”: {“id”: “fb95c1c8-de23-4089-ae29-fd3351d55421”, “installed”: false, “kb”: [“3004365”], “title”: “Security Update for Windows Server 2012 R2 (KB3004365)”}}}

`

`

TASK [windows-patch-management : Security update results] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [TMCQAMON] =\> {  
“msg”: {  
“changed”: false,  
“failed”: true,  
“filtered\_updates”: {},  
“found\_update\_count”: 72,  
“installed\_update\_count”: 0,  
“msg”: "Failed to download update (1 of 72) 093f23cb-1c30-413c-8480-66677ce8b024 - Security Update for Windows Server 2012 R2 (KB2973201): Download Result ",  
“reboot\_required”: false,  
“updates”: {  
“02b62bb0-33b2-4585-8945-0f0a711b909e”: {  
“id”: “02b62bb0-33b2-4585-8945-0f0a711b909e”,  
“installed”: false,  
“kb”: [  
“2966826”  
],  
“title”: “Security Update for Microsoft .NET Framework 3.5 on Windows 8.1 and Windows Server 2012 R2 for x64-based Systems (KB2966826)”  
},

…

`

No specific fail message. I could also install updates manually on the server. Could it be a timeout issue which is not supported in the module?

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 16, 2018, 8:06pm UTC](https://forum.ansible.com/t/win-updates-fail/27540/2 "2018-05-16T20:06:11Z")

</div>

Looks like a typo in the code where it isn’t retrieving the result code, simple fix [https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win\_updates.ps1#L240](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_updates.ps1#L240).

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 16, 2018, 8:56pm UTC](https://forum.ansible.com/t/win-updates-fail/27540/3 "2018-05-16T20:56:51Z")

</div>

I’ve raised a PR to fix this issue [https://github.com/ansible/ansible/pull/40283](https://github.com/ansible/ansible/pull/40283), if you want you can try it out and see what is happening. Otherwise you can specify the log\_path and it should show the error that occurred in the log file.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![nbmprivat](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Post date:** [May 17, 2018, 12:38pm UTC](https://forum.ansible.com/t/win-updates-fail/27540/4 "2018-05-17T12:38:03Z")

</div>

Hi Jordan,

Thanks. When will this bug fix be included in a public ansible version?

onsdag den 16. maj 2018 kl. 22.56.52 UTC+2 skrev Jordan Borean:

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 17, 2018, 7:16pm UTC](https://forum.ansible.com/t/win-updates-fail/27540/5 "2018-05-17T19:16:39Z")

</div>

It will be in the 2.6.0 release but I also backported it for the 2.5.4 release which is imminent. In saying that it won’t actually fix the issue but it will give you the result code as to why the download failed. With this result code we can proceed further to trying to find out what is happening.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 17, 2018, 7:18pm UTC](https://forum.ansible.com/t/win-updates-fail/27540/6 "2018-05-17T19:18:11Z")

</div>

Sorry I meant 2.5.3.
