diff --git a/defaults/main.yml b/defaults/main.yml index 3a5d2f2..cd60fa8 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 4cffada..2d0bc8c 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: