From 500f2192b3d74df74dcfe6bebc803b789cba5f7b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 18 Sep 2023 19:35:53 +0300 Subject: [PATCH] change check --- tasks/configure.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 0cfcd09..1cd84a4 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -20,7 +20,9 @@ - name: Set command for opendkim-genkey (using where) set_fact: opendkim_genkey_cmd: "{{ where_result.stdout }}" - when: where_result.stdout != '' + when: + - stdout in where_result + - where_result.stdout != '' - name: Fail if opendkim-genkey is not found fail: