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 says i can use reject_list: for that.
But the update is not rejected.
My playbook yaml file:
- 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
- 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?