From 58f4afa119f9d75453f95e24c9800b4c03ff027f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 18 Sep 2023 19:30:17 +0300 Subject: [PATCH] double check --- tasks/configure.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index a13df1e..8de8681 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -9,12 +9,14 @@ - name: Find opendkim-genkey command using whereis shell: "whereis opendkim-genkey | awk 'BEGIN {FS=\": \"} {print($2)}'" - register: which_result + register: where_result when: which_result.stdout == "" - name: Fail if opendkim-genkey is not found fail: - when: which_result.stdout == "" + when: + - where_result.stdout == "" + - which_result.stdout == "" - name: Set command for opendkim-genkey set_fact: