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