Use curl instead of get_url on Python 2.6. (#585) (#586)

(cherry picked from commit 0829bc641e)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/594/head
patchback[bot] 2023-03-22 21:30:53 +01:00 committed by GitHub
parent 1572c10384
commit 9fc27e74f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,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: