OpenDKIM mail signing deployment with ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

33 lines
790 B

- name: Generate OpenDKIM keys
command:
argv: ["opendkim-genkey", "-D", "/etc/opendkim-data/", "-d", "redxen.eu", "-s", "mail"]
tags:
- opendkim
- keygen
when: generate|default(false)
notify: Run service actions
- name: Copy OpenDKIM config
loop:
template:
src: 'opendkim.conf'
dest: '/etc/opendkim.conf'
follow: yes
owner: opendkim
mode: "700"
tags:
- opendkim
notify: Run service actions
- name: Copy OpenDKIM files
loop:
- 'keytable'
- 'signingtable'
- 'trustedhosts'
template:
src: '{{ item }}'
dest: '/etc/opendkim-data/{{ item }}'
follow: yes
owner: opendkim
mode: "700"
tags:
- opendkim
notify: Run service actions