Currently I am able to do this by using ansible in WSL(Windows Subsystem for Linux) with kerberos authentication. But when I use Docker container instead of WSL and follow same procedure as with WSL, I am not able to do it. I get the following error while running the playbook : fatal: [app-server-1]: UNREACHABLE! => { "changed": false, "msg": "kerberos: HTTPConnectionPool(host='****', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',))", "unreachable": true }
NOTE: - In both cases the machine running WSL or Docker is a windows machine and it is in the network domain.