1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Only check for version if gitea==latest and already installed

This commit is contained in:
L3D 2024-01-12 00:50:37 +01:00
parent 2c1efdd22c
commit e853561bdf
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
3 changed files with 3 additions and 1 deletions

View file

@ -102,6 +102,7 @@
that:
- gitea_active_version is version(gitea_remote_version, 'lt')
fail_msg: ERROR - Remote version is lower then current version!
when: gitea_version == "latest" and gitea_active_version.stderr == "" | bool
- name: Show Download URLs # noqa: H500
ansible.builtin.debug:

View file

@ -45,6 +45,7 @@
that:
- gitea_active_version is version(gitea_remote_version, 'lt')
fail_msg: ERROR - Remote version is lower then current version!
when: gitea_version == "latest" and gitea_active_version.stderr == "" | bool
- name: "Generate gitea download URL"
ansible.builtin.set_fact:

View file

@ -62,5 +62,5 @@ transfer_custom_footer:
- 'files/gitea_footer/extra_links_footer.tmpl'
- 'files/extra_links_footer.tmpl'
playbook_version_number: 53 # should be int
playbook_version_number: 54
playbook_version_path: 'do1jlr.gitea.version'