Hello, I am trying to install windows updates with Ansible and for some 
reason it is not working. This is what I have so far.

 

My playbook:

 

---

 

- name: Windows Update

  hosts: win10-pro-1

  gather_facts: false

  tasks:

    - name: Install updates

      win_updates:

        category_names:

          [

            "Updates",

            "Microsoft Defender Antivirus",

            "Windows 10, version 1903 and later",

            "Definition Updates",

            "Security Updates",

            "Critical Updates",

            "Update Rollups",

            "Definition Updates",

            "Quality Updates",

            "Feature Updates",

            "Upgrades",

          ]

        state: installed

        reboot: true

        reboot_timeout: 300

      register: updates_were_installed

      ignore_errors: true

 

    - name: Ensure that WinRM is started when the system has settled

      win_service:

        name: WinRM

        start_mode: delayed

 

Results after it runs:

 

[image: Results after it runs.png]

 

Then when I go to the windows 10 machine this is what I see:

[image: windows 10 update.png]


 

I am not sure if I maybe not covering the correct category or what. I have 
also tired to upgrade a 1803 windows 10 to 1909 with no avail. Can anyone 
help me with getting updates to work?

-- 
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/6218884e-55df-427c-8307-900349047fe4o%40googlegroups.com.

Reply via email to