Compare commits
2 Commits
d0d3de9f6c
...
c675ed2e15
Author | SHA1 | Date | |
---|---|---|---|
c675ed2e15 | |||
12c3730662 |
@ -3,7 +3,7 @@
|
||||
|
||||
gitea_version_file: https://dl.gitea.io/gitea/version.json
|
||||
|
||||
gitea_version: ""
|
||||
gitea_version: "latest"
|
||||
gitea_architecture: arm64
|
||||
|
||||
gitea_install_path: /opt/gitea
|
||||
|
@ -18,13 +18,13 @@
|
||||
url: "{{ gitea_version_file }}"
|
||||
return_content: true
|
||||
follow_redirects: all
|
||||
when: not gitea_version | length > 0
|
||||
when: gitea_version == "latest"
|
||||
register: version_file
|
||||
|
||||
- name: Extraire la dernière version
|
||||
ansible.builtin.set_fact:
|
||||
gitea_version: "{{ (version_file.content | from_json).latest.version }}"
|
||||
when: not gitea_version | length > 0
|
||||
when: gitea_version == "latest"
|
||||
|
||||
- name: Télécharger le binaire
|
||||
ansible.builtin.get_url:
|
||||
|
Loading…
Reference in New Issue
Block a user