fix cmd
This commit is contained in:
parent
58f4afa119
commit
4833144d70
1 changed files with 7 additions and 1 deletions
|
@ -18,9 +18,15 @@
|
|||
- where_result.stdout == ""
|
||||
- which_result.stdout == ""
|
||||
|
||||
- name: Set command for opendkim-genkey
|
||||
- name: Set command for opendkim-genkey (using which)
|
||||
set_fact:
|
||||
opendkim_genkey_cmd: "{{ which_result.stdout }}"
|
||||
when: which_result.stdout != ''
|
||||
|
||||
- name: Set command for opendkim-genkey (using where)
|
||||
set_fact:
|
||||
opendkim_genkey_cmd: "{{ where_result.stdout }}"
|
||||
when: where_result.stdout != ''
|
||||
|
||||
- name: Generate DKIM keys
|
||||
shell: "{{opendkim_genkey_cmd }} -D /etc/dkimkeys --domain={{ item }} --selector={{ item }}"
|
||||
|
|
Loading…
Reference in a new issue