According to http://docs.ansible.com/ansible/win_updates_module.html "logPath" is an option for the win_updates module.
What OS are your Windows nodes running? On Tuesday, September 8, 2015 at 9:34:40 PM UTC+2, Dimitri Yioulos wrote: > > All, > > After lots of testing, I can only report that I have results all over the > place. > > - I ran the playbook against a group containing two servers. The > first one reported: "updates_installed_count": 11, > "updates_reboot_needed": > true, "updates_success": "true", but no updates were applied. The second > one rebooted during the run of the play and, subsequently, the play failed > due to a timeout. When I then logged into the machine, and did any task, > it > rebooted by itself. After coming back up, I noted that sometimes all of > the updates had been applied, and sometimes most, but not all, had been > applied. > - On machines that are fully updated and rebooted and checked for > updates again [none found], I run the playbook, and get back the following > results: "updates_installed_count": 0, *"updates_reboot_needed": true*, > "updates_success": "true". Why do I get an *"updates_reboot_needed": > true*? There's no need. > - If I run "Get-WUInstall -Acceptall -IgnoreReboot -Verbose" in > Powershell, all updates are applied correctly, and was prompted to reboot. > > So, it appears that something about running Get-WUInstall remotely doesn't > seem to work properly. > > > Trond, I apologize, but I'm not sure what the logPath parameter is. Do > you mean setting log_path in ansible.cfg? Otherwise, I'm not sure what the > parameter is or how to use it (couldn't find any documentation). > > Dimitri > > On Wednesday, September 2, 2015 at 12:57:51 PM UTC-4, 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/f68e77e4-ae1f-4d94-9b31-cbeaa7399593%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
