ansible failing on windows machines that used to work

I have about 90 windows VMs that I use ansible on to configure and pull windows updates.

I upgraded from ansible 2.7 to 2.8.1 - I think thats when this started.

The windows server are all 2008 R2.

Today when I try to run a playbook against them that does a simple win_regmerge, it get thru 3 of the windows servers and then just hangs.

Running with -vvvv shows me which vm it hangs on

`

Using module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win_regmerge.ps1
Pipelining is enabled.
ESTABLISH WINRM CONNECTION FOR USER: user@my.domain on PORT 5986 TO covmgrid18
calling kinit with subprocess for principal user@my.domain
EXEC (via pipeline wrapper)

`

running test-wsman against the VM is successful. Checked firewall is not enabled. I have let it sit for over 30 minutes and nothing happens. I rebooted the VM no difference… when I rebooted, it then said unreachable and went to the next VM where it hangs again. I can’t see any difference between the ones that work and the ones that do not and the all used to work with 2.7.

I’ve been stuck on this all afternoon and am out of ideas other than to regress to 2.7 - but just wondered if anyone else had seen anything similar.

Regards
Bill

It could be due to various reasons but you need to figure out where it is hanging, can you see;

  • If there is a running powershell.exe process on your Windows host, try and check when the task actually runs to see if the process ran and finished

  • Can you see any network traffic between the Ansible controller and the remote hsot

  • Are any or all the registry changes being applied

  • Does other modules like win_ping work

  • Can you use the raw module?

Thanks

Jordan

Answers below… it seems to have something to do with become. I commented out all of the become in the playbook and then it actually runs thru all the hosts, failing on the ones that were hanging before.

I am now getting errors that look like they pertain to:

win_updates fails on Windows 2008 R2 fails on Ansible 2.7.1, works on 2.6.4 #47874

So I am digging thru that – but I am on 2.8.1 – now that it goes thru the whole host list, it appears about 50% are failing. These were all made from the same VMware template.

I am continuing to dig, but if this means anything to anyone I appreciate any further input!

upgrading to PS 4 worked on one host… so I assume that will solve my problems…

Thanks
Bill