Ansible not installing the windows update

86 views
Skip to first unread message

Lucky Lakshman

unread,
Oct 22, 2021, 8:25:08 AM10/22/21
to Ansible Project
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

Dick Visser

unread,
Oct 22, 2021, 9:12:31 AM10/22/21
to ansible...@googlegroups.com
On Fri, 22 Oct 2021 at 14:25, Lucky Lakshman <lucky.l...@gmail.com> wrote:

          - name: Install only particular updates based on the KB numbers
            win_updates:
                    category_name:

Typo?

--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages