From f20115f513627e8955ab38cca8b87152bcc49639 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 22 Oct 2023 01:12:37 +0200 Subject: [PATCH] Fix syntax error. --- tasks/assert_env_var_not_empty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/assert_env_var_not_empty.yml b/tasks/assert_env_var_not_empty.yml index 1b73ef4..04c610a 100755 --- a/tasks/assert_env_var_not_empty.yml +++ b/tasks/assert_env_var_not_empty.yml @@ -2,5 +2,5 @@ - name: Assert {{ item }} environment variable is set ansible.builtin.assert: that: - - lookup('env','{{ item }}') | length > 0 + - lookup('env','' ~ item) | length > 0 msg: "{{ item }} environment variable must be set"