>
> TASK [Reboot host if required]
> ******************************************************************************************
> fatal: [10.50.1.231]: FAILED! => {"changed": false, "msg": "Invalid
> options for win_reboot: when"}
>
I can't see you task but this sounds like your when clause is not indented
correctly. You have it as a module option for win_reboot when it should be
on the same indentation as the module name.
> Just found out when I run windows update manually on the machine, there
> were 3 updates that ansible didnt report back?
>
>From your screenshot it indicated those updates are only available through
the public Windows Update catalogue and not your org's WSUS catalog. The
win_updates module defaults to whatever the OS settings are so if you have
a WSUS server configured it will only look there by default. In Ansible 2.8
and newer you can use the 'server_selection' option as documented [1] to
force win_updates to check the public Windows update catalog and not the
configured WSUS server.
[1] -
https://docs.ansible.com/ansible/latest/modules/win_updates_module.html
--
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/ca56bd43-5561-44de-a578-819563549c36%40googlegroups.com.