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

gitea_version variable is already defined

the gitea_version variable is always defined. But it can have values like 'latest'
This commit is contained in:
L3D 2022-06-21 17:36:40 +02:00
parent db0da06c08
commit 7603c93fb5
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -21,7 +21,7 @@
msg: |
"You are running this playbook in check mode:
Please set the Gitea version with the variable 'gitea_version', because the URI module cannot detect the latest version in this mode."
when: ansible_check_mode and ( gitea_version not defined )
when: ansible_check_mode and ( gitea_version == 'latest' or gitea_version == 'present' )
- name: "Set fact latest gitea release"
ansible.builtin.set_fact: