# Ansible not installing the windows update

**URL:** <https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 22, 2021, 12:25pm UTC](https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910 "2021-10-22T12:25:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucky\_Lakshman](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Lucky\_Lakshman](https://forum.ansible.com/u/Lucky_Lakshman)\
**Post date:** [October 22, 2021, 12:25pm UTC](https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910/1 "2021-10-22T12:25:08Z")

</div>

Hello,

I have used the below yaml file. The file is getting executing but the installation is not going on.

- hosts: win  
tasks:
- name: Return list of found updates and log to C:\WinUpdates.txt  
win\_updates:  
category\_names: SecurityUpdates  
state: searched  
log\_path: C:\WinUpdates.txt
- name: Install only particular updates based on the KB numbers  
win\_updates:  
category\_name:
- SecurityUpdates  
whitelist:
- KB2267602  
reboot: yes

The log file is showing skipping the update as it is not under category name but i have mentioned it.

Skipping update 74ff725c-04c6-4a3e-9654-66b38618413f - Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.351.857.0) as it was not found in the category names filter  
2021-10-22 12:16:47Z Calculating pre-install reboot requirement…  
2021-10-22 12:16:47Z Native job completed with output:  
Name Value

* * *

updates {}  
found\_update\_count 0  
changed False  
reboot\_required False  
installed\_update\_count 0  
filtered\_updates {74ff725c-04c6-4a3e-9654-66b38618413f}

Can anyone help me on this

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 22, 2021, 1:12pm UTC](https://forum.ansible.com/t/ansible-not-installing-the-windows-update/35910/2 "2021-10-22T13:12:05Z")

</div>

Typo?
