---
- 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?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3c8b9fc1-e072-40be-8830-ba1b7d433500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to