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:
parent
db0da06c08
commit
7603c93fb5
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
msg: |
|
msg: |
|
||||||
"You are running this playbook in check mode:
|
"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."
|
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"
|
- name: "Set fact latest gitea release"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|
Loading…
Reference in a new issue