This is my verbose output

TASK [Gathering Facts] 
**********************************************************************************************
task path: /mnt/c/ansible/test.yml:1
Using module file 
/home/xxxxxx/.local/lib/python2.7/site-packages/ansible/modules/windows/setup.ps1
<192.168.6.1> ESTABLISH WINRM CONNECTION FOR USER: xxxx on PORT 5986 TO 
192.168.6.1
checking if winrm_host 192.168.6.1 is an IPv6 address
<192.168.6.1> WINRM CONNECT: transport=ssl 
endpoint=https://192.168.6.1:5986/wsman
<192.168.6.1> WINRM CONNECTION ERROR: 
HTTPSConnectionPool(host='192.168.6.1', port=5986): Max retries exceeded 
with url: /wsman (Caused by SSLError(SSLEOFError(8, u'EOF occurred in 
violation of protocol (_ssl.c:590)'),))
Traceback (most recent call last):
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py",
 
line 345, in _winrm_connect
    self.shell_id = protocol.open_shell(codepage=65001)  # UTF-8
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/winrm/protocol.py", line 
157, in open_shell
    res = self.send_message(xmltodict.unparse(req))
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/winrm/protocol.py", line 
234, in send_message
    resp = self.transport.send_message(message)
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/winrm/transport.py", 
line 256, in send_message
    response = self._send_message_request(prepared_request, message)
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/winrm/transport.py", 
line 261, in _send_message_request
    response = self.session.send(prepared_request, 
timeout=self.read_timeout_sec)
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/requests/sessions.py", 
line 618, in send
    r = adapter.send(request, **kwargs)
  File 
"/home/chanondw/.local/lib/python2.7/site-packages/requests/adapters.py", 
line 506, in send
    raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='192.168.6.1', port=5986): Max retries 
exceeded with url: /wsman (Caused by SSLError(SSLEOFError(8, u'EOF occurred 
in violation of protocol (_ssl.c:590)'),))



On Tuesday, April 3, 2018 at 3:06:07 PM UTC+7, cha...@salweensolutions.com 
wrote:
>
> I am setting up ansible on a new device using the following step.
>
> Machine setup: Windows 10 with WSL enabled
>
> sudo apt-get-y install python-pip python-dev libffi-dev libssl-dev
> pip install ansible --user
> echo `PATH=$HOME/.local/bin:$PATH` >> ~/.bashrc
> pip install "pywinrm>=0.2.2"
>
> I wrote a simple win_ping module with the correct username and password. 
> It is returning this error
>
> fatal: [192.168.6.1]: UNREACHABLE! => {
>>
>>    "changed": false,
>>
>>    "msg": "ssl: HTTPSConnectionPool(host='192.168.6.1', port=5986): Max 
>>> retries exceeded with url: /wsman (Caused by SSLError(SSLEOFError(8, u'EOF 
>>> occurred in violation of protocol (_ssl.c:590)'),))",
>>
>>    "unreachable": true
>>
>> }
>>
>>
> I'm not sure what I'm doing wrong. My other machine which I also setup 
> using the same credentials with similar steps is currently working fine. 
> Please help.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f632817e-5f99-4d14-afce-40a3bbde085c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to