Merge pull request 'feat: Define gitea_version to lastest by default' (#3) from manageConf into master

Reviewed-on: #3
This commit is contained in:
pulsar89.5 2024-01-19 09:35:51 +00:00
commit c675ed2e15
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
gitea_version_file: https://dl.gitea.io/gitea/version.json gitea_version_file: https://dl.gitea.io/gitea/version.json
gitea_version: "" gitea_version: "latest"
gitea_architecture: arm64 gitea_architecture: arm64
gitea_install_path: /opt/gitea gitea_install_path: /opt/gitea

View File

@ -18,13 +18,13 @@
url: "{{ gitea_version_file }}" url: "{{ gitea_version_file }}"
return_content: true return_content: true
follow_redirects: all follow_redirects: all
when: not gitea_version | length > 0 when: gitea_version == "latest"
register: version_file register: version_file
- name: Extraire la dernière version - name: Extraire la dernière version
ansible.builtin.set_fact: ansible.builtin.set_fact:
gitea_version: "{{ (version_file.content | from_json).latest.version }}" 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 - name: Télécharger le binaire
ansible.builtin.get_url: ansible.builtin.get_url: