# anisble -m win_ping windows -vvvvv Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc META: ran handlers Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_ping.ps1 ESTABLISH WINRM CONNECTION FOR USER: serv_ansible@TEST.COM.BR on PORT 5986 TO srvremote.TEST.COM.BR creating Kerberos CC at /tmp/tmpZWceSk calling kinit for principal serv_ansible@TEST.COM.BR kinit succeeded for principal serv_ansible@TEST.COM.BR WINRM CONNECT: transport=kerberos endpoint=https://srvremote.TEST.COM.BR:5986/wsman WINRM CONNECTION ERROR: the specified credentials were rejected by the server Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/winrm.py", line 214, in _winrm_connect self.shell_id = protocol.open_shell(codepage=65001) # UTF-8 File "/usr/local/lib/python2.7/dist-packages/winrm/protocol.py", line 132, in open_shell res = self.send_message(xmltodict.unparse(req)) File "/usr/local/lib/python2.7/dist-packages/winrm/protocol.py", line 207, in send_message return self.transport.send_message(message) File "/usr/local/lib/python2.7/dist-packages/winrm/transport.py", line 190, in send_message raise InvalidCredentialsError("the specified credentials were rejected by the server") InvalidCredentialsError: the specified credentials were rejected by the server WINRM CONNECT: transport=ssl endpoint=https://srvremote.TEST.COM.BR:5986/wsman WINRM CONNECTION ERROR: the specified credentials were rejected by the server Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/winrm.py", line 214, in _winrm_connect self.shell_id = protocol.open_shell(codepage=65001) # UTF-8 File "/usr/local/lib/python2.7/dist-packages/winrm/protocol.py", line 132, in open_shell res = self.send_message(xmltodict.unparse(req)) File "/usr/local/lib/python2.7/dist-packages/winrm/protocol.py", line 207, in send_message return self.transport.send_message(message) File "/usr/local/lib/python2.7/dist-packages/winrm/transport.py", line 190, in send_message raise InvalidCredentialsError("the specified credentials were rejected by the server") InvalidCredentialsError: the specified credentials were rejected by the server srvremote.TEST.COM.BR | UNREACHABLE! => { "changed": false, "msg": "kerberos: the specified credentials were rejected by the server, ssl: the specified credentials were rejected by the server", "unreachable": true } # klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: serv_ansible@TEST.COM.BR Valid starting Expires Service principal 09/28/2017 21:08:43 09/29/2017 07:08:43 krbtgt/TEST.COM.BR@TEST.COM.BR renew until 09/29/2017 21:08:20 # cat /etc/ansible/hosts srvremote.test.com.br