|
@@ -14,11 +14,11 @@
|
14
|
14
|
|
15
|
15
|
- name: Create OpenDKIM key directories
|
16
|
16
|
file: state=directory path=/etc/opendkim/keys/{{ item.name }} group=opendkim owner=opendkim
|
17
|
|
- with_items: mail_virtual_domains
|
|
17
|
+ with_items: "{{ mail_virtual_domains }}"
|
18
|
18
|
|
19
|
19
|
- name: Generate OpenDKIM keys
|
20
|
20
|
command: opendkim-genkey -r -d {{ item.name }} -D /etc/opendkim/keys/{{ item.name }}/ creates=/etc/opendkim/keys/{{ item.name }}/default.private
|
21
|
|
- with_items: mail_virtual_domains
|
|
21
|
+ with_items: "{{ mail_virtual_domains }}"
|
22
|
22
|
|
23
|
23
|
- name: Put opendkim.conf into place
|
24
|
24
|
copy: src=etc_opendkim.conf dest=/etc/opendkim.conf owner=opendkim group=opendkim
|