Warning while running an ansible ping against the windows hosts

43 views
Skip to first unread message

Raj

unread,
Mar 13, 2020, 5:43:38 PM3/13/20
to Ansible Project
Hello,

I received an error earlier that my Ansible master unable to connect to windows hosts by throwing below error.

msg": "winrm or requests is not installed: cannot import name UnrewindableBodyError"

by running below command
pip install --proxy=proxyserver:80 --ignore-installed "pywinrm>=0.3.0"

I was able to ping windows servers, however, I am still receiving the below message, which is annoying for huge inventory. 

/usr/lib/python2.7/site-packages/requests_ntlm/requests_ntlm.py:200: NoCertificateRetrievedWarning: Requests is running with a non urllib3 backend, cannot retrieve server certificate for CBT
 
NoCertificateRetrievedWarning)
x
.x.x.x | SUCCESS => {
   
"changed": false,
   
"ping": "pong"
}

Can someone check the warning and guide me on how I can address this issue? 

Thanks and Regards
Raj
Reply all
Reply to author
Forward
0 new messages