mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 13:22:58 +00:00
Use curl instead of get_url on Python 2.6. (#585)
This commit is contained in:
@@ -71,6 +71,13 @@
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/diafygi/acme-tiny/master/acme_tiny.py
|
||||
dest: "{{ remote_tmp_dir }}/acme-tiny"
|
||||
when: ansible_python_version is version('2.7', '>=')
|
||||
|
||||
- name: Get hold of acme-tiny executable (Python 2.6)
|
||||
command:
|
||||
cmd: >-
|
||||
curl https://raw.githubusercontent.com/diafygi/acme-tiny/master/acme_tiny.py --output "{{ remote_tmp_dir }}/acme-tiny"
|
||||
when: ansible_python_version is version('2.7', '<')
|
||||
|
||||
- name: Make sure acme-tiny is executable
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user