mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Added check to stop execution when the remote version is higher then the currently installed
This commit is contained in:
parent
c5df1e57a1
commit
a085e0cc5c
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,12 @@
|
|||
gitea_version_target: "{{ gitea_version }}"
|
||||
when: gitea_version != "latest"
|
||||
|
||||
- name: 'Assert that remote version is higher'
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- gitea_active_version is version(gitea_remote_version, 'lt')
|
||||
fail_msg: ERROR: Remote version is lower then current version!
|
||||
|
||||
- name: "Generate gitea download URL"
|
||||
ansible.builtin.set_fact:
|
||||
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version_target }}/gitea-{{ gitea_version_target }}-linux-{{ gitea_arch }}"
|
||||
|
|
Loading…
Reference in a new issue