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

Merge pull request #141 from roles-ansible/sterr

Only check for version if gitea==latest and already installed
This commit is contained in:
L3D 2024-01-12 00:52:26 +01:00 committed by GitHub
commit 48d540d77d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -102,6 +102,7 @@
that: that:
- gitea_active_version is version(gitea_remote_version, 'lt') - gitea_active_version is version(gitea_remote_version, 'lt')
fail_msg: ERROR - Remote version is lower then current version! 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 - name: Show Download URLs # noqa: H500
ansible.builtin.debug: ansible.builtin.debug:

View file

@ -45,6 +45,7 @@
that: that:
- gitea_active_version is version(gitea_remote_version, 'lt') - gitea_active_version is version(gitea_remote_version, 'lt')
fail_msg: ERROR - Remote version is lower then current version! 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" - name: "Generate gitea download URL"
ansible.builtin.set_fact: ansible.builtin.set_fact:

View file

@ -62,5 +62,5 @@ transfer_custom_footer:
- 'files/gitea_footer/extra_links_footer.tmpl' - 'files/gitea_footer/extra_links_footer.tmpl'
- 'files/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' playbook_version_path: 'do1jlr.gitea.version'