Configuration Management Tool

IP Address UNREACHABLE: HTTP connection pool Max retries exceeded with url/wsman caused by NewConnectionError

The following error below is a result of a wrong IP Address used in the inventory list.

For more information on Ansible authentication options, see the following guides and on Kerberos and also this link.

Since my focus is on Kerberos, see the article on how to configure kerberos

192,168,178.43 | UNREACHABLE! => {
"changed": false,
"msg": "ssl: HTTPSConnectionPool(host='192,168,178.43', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 8] Name or service not known'))",
"unreachable": true
}

Solution: As you can see, it clearly stated “NewConnectionError”. Failed to establish a new connection because the IP Address had comma (,) instead of a dot (.) in the host inventory as shown below.

– Correct the inventory file as shown above with the right IP Address and try again and try to oing the host inventory file as shown below with the following Ad hoc command below.

$ ansible all -i hosts -m win_ping

If you require additional information on this issue, kindly drop a comment.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x