5 ms·
Unarchive module gets cert error on get.docker.com on Ubuntu 14.04 LTS. System Python is too old.
by mmgutz 10y ago
Unarchive module gets cert error on get.docker.com on Ubuntu 14.04 LTS. System Python is too old.
- therealmarv 10y agoI also had this problems in the past with SNI certs. Very annoying old python bug, it's possible to fix old python but this makes no sense for an Ansible deployment http://stackoverflow.com/a/29099439/756056 http://stackoverflow.com/a/29099439/756056 Better approach: Use curl to download in some temp directory/file and then extract from there. Curl does not have this errors. Example: https://github.com/ansible/ansible-modules-core/issues/1716#issuecomment-121001546 https://github.com/ansible/ansible-modules-core/issues/1716#... My dream would be that whole Ansible would use rockstable libcurl instead of the requests library which has problems with Certs on (not so) old python versions.
- bcoca 10y agowe actually avoid the requests lib for this and many other reasons, we don't use libcurl as we try to avoid extra dependencies when possible. The issue is more basic than requests, the actual python http/url and ssl implementations have these issues, we have patched and added warnings to indicate which minimal python versions you can use and have SNI work.
- therealmarv 10y agothanks for clarifying!