it's filtering now ----
vars :
win_updates:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
- Definition Updates
- Updates
- Windows Server 2016
- Windows Defender
- Feature Packs
- Silverlight
- Upgrades
- Windows 10
- Drivers
tasks:
- name: check for missing updates
win_updates:
state: searched
catagory_names: "{{ win_updates }}"
register: update_count
ignore_errors: yes
- name: reboot if required
win_reboot:
when: update_count.reboot_required
ignore_errors: yes
- name: install updates
win_updates:
catagory_names: "{{ win_updates }}"
reboot: yes
register: update_result
*OUTPUT*
"changed": false,
"filtered_updates": {
"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"
},
"9dd000db-ce7e-48cc-b7e9-0508ee8e6c56": {
"categories": [
"Updates",
"Windows 10"
],
"filtered_reason": "category_names",
"id": "9dd000db-ce7e-48cc-b7e9-0508ee8e6c56",
"installed": false,
"kb": [
"4534129"
],
"title": "2020-01 Cumulative Update for .NET Framework 4.8 for
Windows 10 Version 1709 for x64 (KB4534129)"
}
},
"found_update_count": 0,
"installed_update_count": 0,
"reboot_required": false,
"updates": {}
--
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/5cddfe67-661f-4cbd-93b3-c82a93cff37f%40googlegroups.com.