Please can you try exporting
HTTP_PROXY
or 
HTTPS_PROXY 

environment variables before running ansible?

I *think* this will let ansible (actually requests via pywinrm) know that 
you are using a proxy.

Hope this helps,

Jon

On Friday, August 18, 2017 at 8:37:28 AM UTC+1, Aleksander Lipka wrote:
>
> I know port shouldn't be y, I just assumed in the example that it's y.
> Anyway I added ansible_winrm_server_cert_validation: ignore and 
> ansible_winrm_transport: ntlm and still didn't work.
> However I tried the second port you mentioned: 5985 (I use 5986 as 
> default) and the playbook stopped at gathering facts for longer than usual 
> and returned a different error:
>
> fatal: [WindowsServer]: UNREACHABLE! => 
> {"changed": false, "msg": "ntlm: HTTPConnectionPool(host='161.90.234.10', 
> port=8080): 
> Read timed out. (read timeout=30)", "unreachable": true}
>
>
> The IP and the port that you see in the error is actually the proxy that 
> is set in IE in my WindowsServer2012 R2.
> Still the connection was rejected, why?
>
> W dniu czwartek, 17 sierpnia 2017 19:01:21 UTC+2 użytkownik Mike Fennemore 
> napisał:
>>
>> A few extra group_vars:
>> ansible_winrm_server_cert_validation: false and ansible_port should be a 
>> port number not y. It should be 5985 or 5986. You could also use ntlm by 
>> adding ansible_winrm_transport:ntlm
>
>

-- 
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/1bbb5acc-e1e2-4480-bb88-94b984c8eb3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to