Install Windows Updates with Ansible

  ansible, windows, yaml

I am trying to install windows updates with Ansible but I get a strange error.

Code:

- name: Install all security, critical, and rollup updates
  win_updates:
    category_names:
      - SecurityUpdates
      - CriticalUpdates
      - UpdateRollups
    reboot: yes
    reboot_timeout: 500
    log_path: c:tempansible_wu.txt

Error:

enter image description here

The connection from Ansible to the server works fine.

The update is ready to be installed (previously approved from WSUS).

enter image description here

Could you helpme please.

Thanks.

Source: Windows Questions

LEAVE A COMMENT