---
- name: Install Updates
hosts: winserver
gather_facts: true
tasks:
- win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
state: installed
Result
root@SAUPRDSVR01:/etc/ansible/playbooks# ansible-playbook checkUpdates.yml
PLAY [Check Updates] ***************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [172.xx.xx.xxx]
TASK [win_updates] *****************************************************************************************************************************************************
ok: [1172.xx.xx.xxx]
PLAY RECAP *************************************************************************************************************************************************************
172.xx.xx.xxx : ok=2 changed=0 unreachable=0 failed=0
But when i log into my windows server, no updates were installed.
Any help regarding this?