Skip to content

Commit

Permalink
Merge pull request #141 from roles-ansible/sterr
Browse files Browse the repository at this point in the history
Only check for version if gitea==latest and already installed
  • Loading branch information
DO1JLR authored Jan 11, 2024
2 parents 2c1efdd + e853561 commit 48d540d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/set_forgejo_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions tasks/set_gitea_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 48d540d

Please sign in to comment.