ref
https://github.com/ansible/ansible/issues/41521
as suggestion on that link, still error, not sure why the issue still not fixed, but it's been closed
step i've done, according to the suggestion
$ brew update && brew upgrade
$ openssl version
OpenSSL 1.0.2o 27 Mar 2018
$ python -V | pip list | grep ansible
Python 3.6.5 :: Anaconda, Inc.
ansible 2.5.5
$ cat roles/packer/tasks/main.yml
---
- name: get package
get_url:
url: https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_darwin_amd64.zip
validate_certs: False
dest: /Users/Downloads/packer.zip
mode: 0644
- name: unarchive package
unarchive:
src: /Users/MacBookPro/Downloads/packer.zip
dest: /Users/MacBookPro/Downloads/
copy: no
$ ansible-playbook site.yml
PLAY [all] *********************************************************************
TASK [packer : get package] ****************************************************
fatal: [localhost]: FAILED! => {"changed": false, "dest": "/Users/Downloads/packer.zip", "msg": "Request failed: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>", "state": "absent", "url": "https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_darwin_amd64.zip"}
to retry, use: --limit @/Users/MacBookPro/Downloads/learn/ansible/site.retry
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
as the url ref (github issues) i've run python 2.7.15 with ansible 2.5.4, after following the suggestion, upgrade openssl, or even try python3 and ansible (install from fresh) but still got the same result
thx n best regards,
stifan