AutoIt can get really fun when dealing with non-interactive sessions that 
WinRM is run on. The behaviour around console windows in session 0 is not 
the same as a normal interactive session you get when running it manually. 
If AutoIt is waiting for specific console state or is trying to click a 
button in the wrong area it won't work as expected. So effectively the 
problem isn't Chocolatey, Ansible, or win_chocolatey, it's using AutoIt in 
a non-interactive session that is a byproduct of WinRM. I don't know enough 
about AutoIt to give you tips on your scripts but ultimately you want to 
try and have some sort of timeout that will fail if it exceeds a certain 
time. This won't help with getting it working but it will at least tell 
people what the issue may be instead of just hanging.

Thanks

Jordan

-- 
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/56953c68-8669-4599-9798-f8221096c638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to