InsecureRequestWarning: Unverified HTTPS

625 views
Skip to first unread message

barfin...@gmail.com

unread,
Aug 31, 2017, 10:40:45 PM8/31/17
to Ansible Project

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)


barfin...@gmail.com

unread,
Nov 4, 2017, 9:33:14 AM11/4/17
to Ansible Project
any ideas? thanks

Toshio Kuratomi

unread,
Nov 4, 2017, 4:13:47 PM11/4/17
to ansible...@googlegroups.com
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

--
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+unsubscribe@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/a8abadde-8b9c-48d8-aa00-a0a45a7d706c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grace Thompson

unread,
Nov 4, 2017, 4:57:12 PM11/4/17
to ansible...@googlegroups.com
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
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPrnkaSGhyL6CWMONJCokSBp6b6GiDjoWHqKmyay1uApRDB%3D7g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages