windows host not reachable

Hi,

I have installed ansible tower on rhel. I could ping my windows host from that server. But when i configured a job template it has error of connection timeout.

Error message:

“msg”: “plaintext: HTTPConnectionPool(host=‘110.x…119’, port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7f31115d1810>, ‘Connection to 110.144.x119 timed out. (connect timeout=30)’))”,
“unreachable”: true,
“changed”: false

Have you enabled WinRM on the Windows server, it doesn’t seem like you have as there’s no response on the WinRM port.

I enabled. I have even checked in services. its running.

Having the service running may not be enough, have a look through https://docs.ansible.com/ansible/devel/user_guide/windows_setup.html#winrm-setup and verify a listener is configured on the port you specified. It also contains a few other troubleshooting tips.

Thanks

Jordan

port 5985 for http is open. when i did telnet windowshost 5985 it says connected. but from ansible tower it says this error.

my ansible tower is not secured. is this causing connection error to windows host???

Try clean up the existing WinRM listener using the following

winrm delete winrm/config/Listener?Address=+Transport=HTTP
winrm delete winrm/config/Listener?Address=
+Transport=HTTPS

Then run ConfigureRemotingForAnsible.ps1 again.