---
- hosts: localhost
sudo: yes
tasks:
- name: download solr-5.1.0.tgz
get_url:
url: https://archive.apache.org/dist/lucene/solr/5.1.0/solr-5.1.0.tgz
dest: /tmp/solr-5.1.0.tgz
TASK [download solr-5.1.0.tgz] *************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for archive.apache.org: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 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"}
I just use a command: to fire off curl, that works fine
Python 2.7.10 is the first version to have decent SNI support