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}


It seems that the right port is rejecting my connection for some reason but 
I still don't know how to solve it.

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/ade02b96-6429-4940-b765-091c832d352e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to