# Win updates not rejected

**URL:** <https://forum.ansible.com/t/win-updates-not-rejected/4409>\
**Category:** Get Help\
**Tags:** windows\
**Created:** [March 16, 2024, 4:59pm UTC](https://forum.ansible.com/t/win-updates-not-rejected/4409 "2024-03-16T16:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_W](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stefan_w/32/2604_2.png) [@Stefan\_W](https://forum.ansible.com/u/Stefan_W)\
**Post date:** [March 16, 2024, 4:59pm UTC](https://forum.ansible.com/t/win-updates-not-rejected/4409/1 "2024-03-16T16:59:14Z")

</div>

Hello,

i am new to ansible and trying to learn. At the moment i want to install windows updates. That works. But now, i want to exclude a specific update.  
As the documentation [ansible.windows.win\_updates module – Download and install Windows updates — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_updates_module.html#ansible-collections-ansible-windows-win-updates-module) says i can use reject\_list: for that.  
But the update is not rejected.  
My playbook yaml file:

```auto
- hosts: windowstest
  tasks:
    - name: Windows Update
      win_updates:
        category_names:
          - Security Updates
        state: installed
        log_path: c:\ansible_wu.txt
        reboot: true
        reject_list:
          - '.*KB5034439.*'

```

I also tried

```auto
- hosts: windowstest
  tasks:
    - name: Windows Update
      win_updates:
        category_names:
          - Security Updates
        state: installed
        log_path: c:\ansible_wu.txt
        reboot: true
        reject_list:
          - KB5034439

```

And also the host needs a reboot, but ansible dont trigger that reboot.

What goes wrong?

---

<div class="post-metadata">

**Author:** ![Stefan\_W](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stefan_w/32/2604_2.png) [@Stefan\_W](https://forum.ansible.com/u/Stefan_W)\
**Post date:** [March 18, 2024, 10:33am UTC](https://forum.ansible.com/t/win-updates-not-rejected/4409/2 "2024-03-18T10:33:45Z")

</div>

it was as issue with an older version of ansible. I used the ansible version in the ubuntu 22.04 lts repository. After updating to 2.16.4 the rejecting works well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 17, 2024, 10:34am UTC](https://forum.ansible.com/t/win-updates-not-rejected/4409/3 "2024-04-17T10:34:34Z")

</div>

Closed on April 17, 2024, 10:34am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
