37 lines
693 B
YAML
37 lines
693 B
YAML
---
|
|
|
|
- name: Install opendkim
|
|
ansible.builtin.package:
|
|
name:
|
|
- opendkim
|
|
- opendkim-tools
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Put main configuration file
|
|
ansible.builtin.template:
|
|
src: opendkim.conf
|
|
dest: /etc/opendkim.conf
|
|
mode: "0o644"
|
|
notify:
|
|
- Restart opendkim
|
|
|
|
- name: Create dkim directory
|
|
ansible.builtin.file:
|
|
path: /etc/dkim
|
|
state: directory
|
|
mode: "0o755"
|
|
|
|
- name: Put secondary configuration files
|
|
ansible.builtin.copy:
|
|
src: "./files/dkim/{{ item }}"
|
|
dest: "/etc/dkim/{{ item }}"
|
|
mode: "0o644"
|
|
loop:
|
|
- KeyTable
|
|
- PeerList
|
|
- SigningTable
|
|
- TrustedHosts
|
|
notify:
|
|
- Restart opendkim
|