You cannot set the http proxy variables as part of the environment block in a playbook. That will only transfer over to the remote host and not the Ansible host. Ansible pulls the proxy information from the environment variables that are set when it is first executed so you have 4 ways of bypassing this;
1. Don't have the proxy variable set globally and only set them for the task that is required 2. Unset http_proxy or https_proxy before calling ansible 3. Add your Windows host(s) to the 'no_proxy' environment variable to stop a proxy being used for that host 4. Use psrp connection plugin (not winrm) with the 'ansible_psrp_ignore_proxy: True' variable set 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a00ee2de-b16c-497c-926a-3031543cc44b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.