InsecureRequestWarning: Unverified HTTPS

Despite setting cert validation as ignore and false, I still get the warning message. Any ideas? thanks

Windows OS: Windows10 64bit 1703
Linux Controller: RHEL 7.4

group_vars/windows.yml

ansible_user: Administrator
ansible_password: ****
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
validate_certs: false

ansible-playbook -i hosts windows-desktops.yml

PLAY [Installing Packages] ********************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)

any ideas? thanks

This seems to be coming from urllib3. I don’t think we have much affect over it. Since it’s a warning it doesn’t affect the program’s operation. Note that there is a change in 2.4.2 (will be i nthe next tarball) and devel which might remove this usage of urllib3 if you’re using python-2.7.9+ so you may stop getting that warning once you get that upgrade.

-Toshio

Thanks Toshio. I have a workaround right now by removing InsecureRequestWarning in winrm. But of course long term solution would be to implement certs

– gracie mobile