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