aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/opendmarc/tasks/main.yml
blob: 4743dd774ade5c73d3dba9850687517a23b34d42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- name: Install OpenDMARC
  package:
    name:
      - opendmarc
    state: present
  tags:
    - role::opendmarc

- name: Create spool location for OpenDMARC aggregation
  file:
    state: directory
    path: /var/spool/opendmarc
    owner: opendmarc
    group: opendmarc
    mode: "0700"
  tags:
    - role::opendmarc

- name: Template OpenDMARC configuration
  template:
    src: opendmarc.conf.j2
    dest: /etc/opendmarc.conf
    mode: "0644"
    owner: root
    group: root
  tags:
    - role::opendmarc
  notify:
    - Restart OpenDMARC