According to the docs, you need to install PSWindowsUpdate first.

http://docs.ansible.com/ansible/win_updates_module.html

However, the module should ideally fail if you haven't done that. I would 
recommend that you file a bug for that in the ansible-modules-extra github 
repo if this is the case.

On Wednesday, September 2, 2015 at 6:57:51 PM UTC+2, Dimitri Yioulos wrote:
>
> I'm trying to use the extras module win_updates to update my Windows 
> servers.  The play runs without failure, but no updates are applied.
>
> Ideally, I want the install all available updates (e.g. critical, 
> important, optional, etc.).  I've created a play to look like this:
>
> ---
>
> - hosts: windows
>   gather_facts: true
>
>   tasks:
>   - name: win update
>     win_updates:
>        category: security
>
> What do I need to do to make this install the updates, and how to I 
> install all available updates?
>
> Thanks.
>
> Dimitri
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b1424e1c-1311-4d1d-a868-a35d3d732600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to