Ultimately it is ideal to use the win_chocolatey module through the proxy, but I’m unable to just run a simple curl (i.e curl http://www.google.com) through win_shell.
Ansible modules executed on a Windows host are unable to access the internet via an HTTP Proxy. Ideally modules would function similarly to setting the environment on Linux hosts, i.e
I’ve just been through this exact thing for 2 annoying days. You’re not going to like the answer.
Despite setting the proxy through the registry - and I could see it in there using ansible debug tasks - it didn’t actually apply the proxy setting until I logged in through interactive RDP, using the same account.
No idea how to do this automatically - and I now face having to set the proxy and then log into every windows system we own.