Hi,
I’ trying to run a simple test on a remote windows host.
I read http://docs.ansible.com/intro_windows.html and saw that Michael recommends to install pywinrm like this:
pip install http://github.com/diyan/pywinrm/archive/master.zip#egg=pywinrm
In my case, I don’t have any possibility to run pip and hit github due to network security rules so I did it like this (on Debian 8 - Jessie):
-
aptitude install python-isodate python-xmltodict python-pytest python-pytest-cov pep8
-
Downloaded http://github.com/diyan/pywinrm/archive/master.zip#egg=pywinrm and put it on my Ansible server
-
unzip pywinrm-master.zip
-
cd pywinrm-master/
-
python setup.py install
All went well and I have this directory installed /usr/local/lib/python2.7/dist-packages/winrm/
After having modified file /usr/lib/python2.7/dist-packages/ansible/runner/connection_plugins/winrm.py as expected in https://github.com/ansible/ansible/issues/8720 , my problem is that when I run the ping test, this is what I get:
ansible windows_hosts -m win_ping
WINSRV-01 | FAILED => 500 WinRMTransport. [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:581)
Any idea?
I’m running ansible 1.7.2 (Debian package: ansible-1.7.2+dfsg-2 on Debian Jessie).
Tom