Windows Host Unreachable

271 views
Skip to first unread message

Marco Passarinho

unread,
Mar 27, 2020, 8:39:17 AM3/27/20
to Ansible Project
Hello,

I'm getting the following error when trying to win_ping my windows host:

Command: 
ansible VMs -m win_ping

Response:
xx.xx.xx.xxx | UNREACHABLE! => {
    "changed": false, 
    "msg": "basic: HTTPSConnectionPool(host='xx.xx.xx.xxx', port=5986): Max retries exceeded with url: /wsman (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))", 
    "unreachable": true
}

Can please someone help me understand where might the problem be?

Followed all steps for both Control node (Redhat server 7) and Windows 7 controlled node.


You help would be deeply appreciated.

J Hawkesworth

unread,
Mar 28, 2020, 4:50:49 PM3/28/20
to Ansible Project
From the error message it looks like there is a network proxy being used.
If possible I would try and set things up to not use a proxy to start with so you can rule out whether the proxy itself is breaking the communication.
You might wish to try the psrp connection plugin as that has options to avoid proxy.

A couple of useful pages if you need to get into debugging winrm connection
Also the trouble shooting guide here is helpful too:

Hope this helps,

Jon

Marco Passarinho

unread,
Mar 28, 2020, 8:33:36 PM3/28/20
to ansible...@googlegroups.com
Thank you so much for your precious help. I’ll give it a try with the links you referred.

I’ll let you know the result afterwards.

Kind regards,
Marco

Enviado do meu iPad

No dia 28/03/2020, às 20:50, 'J Hawkesworth' via Ansible Project <ansible...@googlegroups.com> escreveu:


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a2575d16-aa43-4198-a2a5-815f4abb2a88%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages