It seems like there may be a firewall/config issue preventing you from connecting. Can you try the following using curl?
curl -vk -d "" -u "user:pass" "https://host:5986/wsman" You should get a 411 status code if the connection and authentication worked as expected. On Fri, Oct 24, 2014 at 2:05 PM, skinnedknuckles < [email protected]> wrote: > Has anyone succeeded at running ansible with a remote node running Windows > 7? I'm having problems getting win-ping to work in this configuration. > I've tried Fedora 20 and CentOs7 with Ansible 1.8. My inventory and > windows.yml files are good and I've run > > pip install http://github.com/diyan/pywinrm/archive/master.zip#egg=pywinrm > > Here is my debug output. > > [ansmgr@localhost ansible]$ ansible windows -c winrm -m win_ping > --ask-pass -vvvv > SSH password: > <123.123.123.123> ESTABLISH WINRM CONNECTION FOR USER: ansmgr on PORT 5986 > TO 123.123.123.123 > <123.123.123.123> WINRM CONNECT: transport=plaintext endpoint= > https://123.123.123.123:5986/wsman > <123.123.123.123> WINRM CONNECTION ERROR: 500 WinRMTransport. [Errno 104] > Connection reset by peer > <123.123.123.123> WINRM CONNECT: transport=plaintext endpoint= > http://123.123.123.123:5986/wsman > 123.123.123.123 | FAILED => Traceback (most recent call last): > > File "/etc/ansible/lib/ansible/runner/__init__.py", line 559, in > _executor > exec_rc = self._executor_internal(host, new_stdin) > File "/etc/ansible/lib/ansible/runner/__init__.py", line 732, in > _executor_internal > return self._executor_internal_inner(host, self.module_name, > self.module_args, inject, port, complex_args=complex_args) > File "/etc/ansible/lib/ansible/runner/__init__.py", line 895, in > _executor_internal_inner > conn = self.connector.connect(actual_host, actual_port, actual_user, > actual_pass, actual_transport, actual_private_key_file) > File "/etc/ansible/lib/ansible/runner/connection.py", line 44, in connect > self.active = conn.connect() > File "/etc/ansible/lib/ansible/runner/connection_plugins/winrm.py", line > 132, in connect > self.protocol = self._winrm_connect() > File "/etc/ansible/lib/ansible/runner/connection_plugins/winrm.py", line > 86, in _winrm_connect > protocol.send_message('') > File "/usr/lib/python2.7/site-packages/winrm/protocol.py", line 173, in > send_message > return self.transport.send_message(message) > File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 76, in > send_message > response = urlopen(request, timeout=self.timeout) > File "/usr/lib64/python2.7/urllib2.py", line 127, in urlopen > return _opener.open(url, data, timeout) > File "/usr/lib64/python2.7/urllib2.py", line 404, in open > response = self._open(req, data) > File "/usr/lib64/python2.7/urllib2.py", line 422, in _open > '_open', req) > File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain > result = func(*args) > File "/usr/lib64/python2.7/urllib2.py", line 1216, in http_open > return self.do_open(httplib.HTTPConnection, req) > File "/usr/lib64/python2.7/urllib2.py", line 1189, in do_open > r = h.getresponse(buffering=True) > File "/usr/lib64/python2.7/httplib.py", line 1045, in getresponse > response.begin() > File "/usr/lib64/python2.7/httplib.py", line 409, in begin > version, status, reason = self._read_status() > File "/usr/lib64/python2.7/httplib.py", line 365, in _read_status > line = self.fp.readline(_MAXLINE + 1) > File "/usr/lib64/python2.7/socket.py", line 476, in readline > data = self._sock.recv(self._rbufsize) > error: [Errno 104] Connection reset by peer > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/6e7dd49d-d56b-4f2e-8254-9ab0fd2a96f8%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/6e7dd49d-d56b-4f2e-8254-9ab0fd2a96f8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ60aCsvZ73se6i%3D4a1C2EQkbabUgt9tvkSmRBWqBf2POw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
