# windows update playbook failed

**URL:** <https://forum.ansible.com/t/windows-update-playbook-failed/33107>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 6, 2020, 2:43pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107 "2020-06-06T14:43:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 6, 2020, 2:43pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107/1 "2020-06-06T14:43:29Z")

</div>

I brought up a new 2012 server and decided to use anisble to patch it.

but it failed on some patches

fatal: [vasvw-winpsctst]: FAILED! =\> {  
“changed”: true,  
“failed\_update\_count”: 0,  
“filtered\_updates”: {  
“2221dd34-39bb-4f16-b320-be49fe4a6b95”: {  
“categories”: [  
“Update Rollups”,  
“Windows Server 2012 R2”  
],  
“filtered\_reason”: “category\_names”,  
“id”: “2221dd34-39bb-4f16-b320-be49fe4a6b95”,  
“installed”: false,  
“kb”: [  
“890830”  
],  
“title”: “Windows Malicious Software Removal Tool x64 - v5.82 (KB890830)”  
},  
“7aba6a05-fb0e-4002-a1d1-eb272c2df7c3”: {  
“categories”: [  
“Updates”,  
“Windows Server 2012 R2”  
],  
“filtered\_reason”: “category\_names”,  
“id”: “7aba6a05-fb0e-4002-a1d1-eb272c2df7c3”,  
“installed”: false,  
“kb”: [  
“4462930”  
],  
“title”: “Update for Adobe Flash Player for Windows Server 2012 R2 (KB4462930)”  
},  
“d1fe2427-174b-4b7b-ba04-69aa90060d12”: {  
“categories”: [  
“Feature Packs”,  
“Windows Server 2012 R2”  
],  
“filtered\_reason”: “category\_names”,  
“id”: “d1fe2427-174b-4b7b-ba04-69aa90060d12”,  
“installed”: false,  
“kb”: [

my playbook

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 6, 2020, 2:57pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107/2 "2020-06-06T14:57:29Z")

</div>

also what is the difference with having

reboot: yes

vs

- name: reboot host if required  
win\_reboot:  
when: update\_result.reboot\_required

---

<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:** [June 6, 2020, 9:23pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107/3 "2020-06-06T21:23:08Z")

</div>

It didn’t fail on any patches, the ones listed were filtered because they didn’t match any of the categories you listed in the task.

The difference between reboot: yes and win\_reboot is that the former will reboot during the win\_updates take and continue to check if there are more updates available. I highly recommend you use the reboot: yes instead of win\_reboot as it is better at handling reboots that take a long time to come back online compared to win\_reboot.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 6, 2020, 11:40pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107/4 "2020-06-06T23:40:12Z")

</div>

Thank you

What else can I add to this playbook?
