32 lines
631 B
YAML
32 lines
631 B
YAML
---
|
|
|
|
- name: Install opendmarc
|
|
ansible.builtin.package:
|
|
name: opendmarc
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Put opendmarc configuration file
|
|
ansible.builtin.copy:
|
|
src: ./files/opendmarc.conf
|
|
dest: /etc/opendmarc.conf
|
|
mode: "0o644"
|
|
notify:
|
|
- Restart opendmarc
|
|
|
|
- name: Create dmarc directory
|
|
ansible.builtin.file:
|
|
path: /etc/dmarc
|
|
state: directory
|
|
mode: "0o755"
|
|
|
|
- name: Put secondary configuration files
|
|
ansible.builtin.copy:
|
|
src: "./files/dmarc/{{ item }}"
|
|
dest: "/etc/dmarc/{{ item }}"
|
|
mode: "0o644"
|
|
loop:
|
|
- IgnoreHosts
|
|
notify:
|
|
- Restart opendmarc
|