So read your filtered updates list, you can see both updates are in there 

ok: [MQN-CKMH5E31UM7.corp.medqia.com] => {
   "changed": false,
   "filtered_updates": {
       "20668013-76d9-43ec-a6f2-f76fb4271642": {
           "categories": [
               "Definition Updates",
               "Windows Defender"
           ],
           "filtered_reason": "category_names",
           "id": "20668013-76d9-43ec-a6f2-f76fb4271642",
           "installed": false,
           "kb": [
               "2267602"
           ],
           "title": "Security Intelligence Update for Windows Defender 
Antivirus - KB2267602 (Version 1.307.2832.0)"
       },
       "5bb32ece-7c8c-4f07-ace1-7ba1d36736a1": {
           "categories": [
               "Updates",
               "Windows 10"
           ],
           "filtered_reason": "category_names",
           "id": "5bb32ece-7c8c-4f07-ace1-7ba1d36736a1",
           "installed": false,
           "kb": [
               "4494452"
           ],
           "title": "2019-05 Update for Windows 10 Version 1709 for 
x64-based Systems (KB4494452)"
       },
       "65ecc208-c6b1-4fce-b892-fc2c93917d76": {
           "categories": [
               "Drivers"
           ],
           "filtered_reason": "category_names",
           "id": "65ecc208-c6b1-4fce-b892-fc2c93917d76",
           "installed": false,
           "kb": [],
           "title": "Logitech - Image - 10/24/2018 12:00:00 AM - 1.3.89.0"
       },
       "79bfbb87-ae9d-480d-9f6f-5c82361e015d": {
           "categories": [
               "Upgrades"
           ],
           "filtered_reason": "category_names",
           "id": "79bfbb87-ae9d-480d-9f6f-5c82361e015d",
           "installed": false,
           "kb": [
               "4530684"
           ],
           "title": "Feature update to Windows 10, version 1909"
       }
   },
   "found_update_count": 0,
   "installed_update_count": 0,
   "reboot_required": false,
   "updates": {}
}

The win_updates modules has 2 filters that are applied to available updates

   1. It first filters the updates based on the categories that are set. By 
   default Critical Updates, Security Updates, and Update Rollups are applied 
   and any other filtered
   2. From there if you have a whitelist or blacklist these filters are 
   applied to the list
   
We can see that both the defender update and the feature update have been 
filtered due to the category name not matching from the input. If you want 
them to be applied you will have to add the 'Upgrades' category for the 
feature upgrade and the 'Windows Defender' or 'Definition Updates' for the 
defender update. Say you wanted to make sure that only the feature update 
to Windows 10, version 1909 is installed you can do

- name: ensure Windows 10 has 1909 feature upgrade installed
  win_updates:
    category_names:
    - Upgrades
    whitelist:
    - KB4530684
    reboot: yes

If you didn't care about the actual KB and want all Upgrades installed then 
just remove the whitelist.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8e43d291-1018-4533-affe-6cb378f7f48a%40googlegroups.com.

Reply via email to