Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

Download fails on Ubuntu 14.04 #1

Open
eHanseJoerg opened this issue Mar 11, 2018 · 0 comments
Open

Download fails on Ubuntu 14.04 #1

eHanseJoerg opened this issue Mar 11, 2018 · 0 comments

Comments

@eHanseJoerg
Copy link

The following error was presented on an Ubuntu 14.04 server with Python 2.7.6:

TASK [mariadb-connector-java : download archive] **********************************************************************************************************
fatal: [ehprod]: FAILED! => {"changed": false, "msg": "Failed to validate the SSL certificate for downloads.mariadb.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine (the python executable used (/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]) or you can install the urllib3, pyOpenSSL, ndg-httpsclient, and pyasn1 python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed."}

Seems like an incompatibility with Python 2.7.6 on the target host. Redefining the host with

ansible_python_interpreter: /usr/bin/python3

makes it work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant