double check
This commit is contained in:
parent
b26f45a1ae
commit
58f4afa119
1 changed files with 4 additions and 2 deletions
|
@ -9,12 +9,14 @@
|
||||||
|
|
||||||
- name: Find opendkim-genkey command using whereis
|
- name: Find opendkim-genkey command using whereis
|
||||||
shell: "whereis opendkim-genkey | awk 'BEGIN {FS=\": \"} {print($2)}'"
|
shell: "whereis opendkim-genkey | awk 'BEGIN {FS=\": \"} {print($2)}'"
|
||||||
register: which_result
|
register: where_result
|
||||||
when: which_result.stdout == ""
|
when: which_result.stdout == ""
|
||||||
|
|
||||||
- name: Fail if opendkim-genkey is not found
|
- name: Fail if opendkim-genkey is not found
|
||||||
fail:
|
fail:
|
||||||
when: which_result.stdout == ""
|
when:
|
||||||
|
- where_result.stdout == ""
|
||||||
|
- which_result.stdout == ""
|
||||||
|
|
||||||
- name: Set command for opendkim-genkey
|
- name: Set command for opendkim-genkey
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in a new issue