Thank you sir.
I had actually done it and was still getting the error. I then realised i had to do sudo
sudo ansible web -i inventory.yml -m win_ping
10.xxx.xxx.xx | FAILED! =>SUCCESS => {
"changed": false,
"ping": "pong"
}
This is for anyone who wants to install WinRM offline. This is what you do.
2. Using WinSCP or any other tool, push it to your linux box, into a directory say WinRM
3. Then go to the command line in linux and go to WinRM directory
4. Untar the tar.gz file using "tar -xvzf pywinrm-0.3.0.tar.gz"
5. cd pywinrm-0.3.0
6. sudo python setup.py install
7. This would fail on dependencies again, if you do not have an internet connection, so please go to
pypi.org and search for the following packages and repeat the same install, you should eventually be good.
gssapi-1.5.0.tar.gz
MarkupSafe-1.1.0.tar.gz
python-ntlm3-1.0.2.tar.gz
python_ntlm3-1.0.2-py2.py3-none-any.whl
requests-2.9.1-py2.py3-none-any.whl
requests-2.9.1.tar.gz
requests-credssp-1.0.2.tar.gz
requests-kerberos-0.12.0.tar.gz
requests_credssp-1.0.2-py2.py3-none-any.whl
requests_kerberos-0.12.0-py2.py3-none-any.whl
requests_ntlm-0.3.0-py2.py3-none-any.whl
requests_ntlm-0.3.0.tar.gz
six-1.4.0.tar.gz
xmltodict-0.11.0-py2.py3-none-any.whl
xmltodict-0.11.0.tar.gz
Thanks!