# Not able to update windows using ansible win\_update

**URL:** <https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 15, 2017, 9:10am UTC](https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255 "2017-08-15T09:10:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarvinder7](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tarvinder7](https://forum.ansible.com/u/tarvinder7)\
**Post date:** [August 15, 2017, 9:10am UTC](https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255/1 "2017-08-15T09:10:04Z")

</div>

```auto
---
- name: Install Updates
  hosts: winserver
  gather_facts: true
  tasks:
  - win_updates:
     category_names:
      - SecurityUpdates
      - CriticalUpdates
      - UpdateRollups
     state: installed 

```

Result

```auto
root@SAUPRDSVR01:/etc/ansible/playbooks# ansible-playbook checkUpdates.yml

PLAY [Check Updates] ***************************************************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [172.xx.xx.xxx]

TASK [win_updates] *****************************************************************************************************************************************************
ok: [1172.xx.xx.xxx]

PLAY RECAP *************************************************************************************************************************************************************
172.xx.xx.xxx : ok=2 changed=0 unreachable=0 failed=0

```

```auto

```

```auto

But when i log into my windows server, no updates were installed.

Any help regarding this?

```

---

<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:** [August 15, 2017, 9:38am UTC](https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255/2 "2017-08-15T09:38:49Z")

</div>

Are there any updates available on that host, Ansible is reporting that the task didn’t change so it didn’t detect and updates to install.
