fix #10
This commit is contained in:
parent
37e51ba671
commit
74a5759412
1 changed files with 1 additions and 5 deletions
|
@ -54,16 +54,12 @@
|
|||
return_content: yes
|
||||
register: release_contents
|
||||
|
||||
- name: Print received release directory
|
||||
debug:
|
||||
msg: "{{ release_contents }}"
|
||||
|
||||
- name: Download desired forgejo version to temporary directory
|
||||
get_url:
|
||||
url: "{{ release_contents.json | json_query(query) }}"
|
||||
dest: "/tmp/forgejo-{{ forgejo_version }}"
|
||||
vars:
|
||||
query: "assets[?ends_with(name, 'amd64') == `true`].browser_download_url"
|
||||
query: "(assets[?ends_with(name, 'amd64') == `true`].browser_download_url)[0]"
|
||||
when: forgejo_version is defined and not forgejo_binary_dl.stat.exists
|
||||
|
||||
# - name: Copy forgejo binary to /usr/local/bin after successful download
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue