What is the module to install drivers?

94 views
Skip to first unread message

Work-Hard

unread,
Jan 24, 2020, 6:16:37 PM1/24/20
to Ansible Project
What is the module to install drivers ? it's not working with win_updates.
===================================================
    "changed": false,
    "filtered_updates": {
        "3ae62049-cfd0-482e-b95b-e44f346aa156": {
            "categories": [
                "Drivers"
            ],
            "filtered_reason": "category_names",
            "id": "3ae62049-cfd0-482e-b95b-e44f346aa156",
            "installed": false,
            "kb": [],
            "title": "Realtek Semiconductor Corp. - Extension - 10.0.17134.1"
        }
    },
    "found_update_count": 0,
    "installed_update_count": 0,
    "reboot_required": false,
    "updates": {}

Cheers

Work-Hard

unread,
Jan 24, 2020, 7:03:45 PM1/24/20
to Ansible Project
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)"

Work-Hard

unread,
Jan 24, 2020, 7:35:43 PM1/24/20
to Ansible Project
changed - catagory_names to category_names.. Will try again but will the driver update ? please let me know
Reply all
Reply to author
Forward
0 new messages