33 lines
583 B
YAML
33 lines
583 B
YAML
- name: install opendkim
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop:
|
|
- opendkim
|
|
- opendkim-tools
|
|
|
|
- name: main configuration files
|
|
template:
|
|
src: opendkim.conf
|
|
dest: /etc/opendkim.conf
|
|
notify:
|
|
- restart opendkim
|
|
|
|
- name: dkim directory
|
|
file:
|
|
path: /etc/dkim
|
|
state: directory
|
|
|
|
- name: secondary configuration files
|
|
copy:
|
|
src: "./files/dkim/{{ item }}"
|
|
dest: "/etc/dkim/{{ item }}"
|
|
loop:
|
|
- KeyTable
|
|
- PeerList
|
|
- SigningTable
|
|
- TrustedHosts
|
|
notify:
|
|
- restart opendkim
|
|
|