double check

This commit is contained in:
Antonio J. Delgado 2023-09-18 19:30:17 +03:00
parent b26f45a1ae
commit 58f4afa119

View file

@ -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: