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: