I'm running Ansible 2.4.3.0 on a Ubuntu server. While trying to access a Windows 2016 server, getting below error. The DNS is working fine. Can someone help me in fixing this?
ansible_host=XXX.XXX.XX | UNREACHABLE! => {
"changed": false,
"msg": "ssl: HTTPSConnectionPool(host='ansible_host=
XXX.XXX.XX
', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f3e5d5c50>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
"unreachable": true