get_url can not work with https

754 views
Skip to first unread message

stifan kristi

unread,
Jun 17, 2018, 7:34:26 PM6/17/18
to Ansible Project
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

Roytman Piccoli

unread,
Jun 23, 2023, 4:21:15 AM6/23/23
to Ansible Project
I have same error, I can't understand why

Dick Visser

unread,
Jun 23, 2023, 7:01:46 AM6/23/23
to ansible...@googlegroups.com
Thanks for digging up a 5 year old thread. 
Read the comments on the GitHub issue, your answer is there.


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/339431da-d7b4-4cd1-b126-29ff8954d7f9n%40googlegroups.com.
--
Sent from Gmail Mobile
Reply all
Reply to author
Forward
0 new messages