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:
parent
2c1efdd22c
commit
e853561bdf
3 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue