From 7603c93fb586292ae6917cd224be388578c5db2e Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 21 Jun 2022 17:36:40 +0200 Subject: [PATCH] gitea_version variable is already defined the gitea_version variable is always defined. But it can have values like 'latest' --- tasks/set_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/set_version.yml b/tasks/set_version.yml index 3129dbd..20810cb 100644 --- a/tasks/set_version.yml +++ b/tasks/set_version.yml @@ -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: