31 lines
577 B
YAML
31 lines
577 B
YAML
---
|
|
|
|
- name: Install opendmarc
|
|
ansible.builtin.package:
|
|
name: opendmarc
|
|
state: present
|
|
|
|
- name: Opendmarc config file
|
|
ansible.builtin.copy:
|
|
src: ./files/opendmarc.conf
|
|
dest: /etc/opendmarc.conf
|
|
mode: 0644
|
|
notify:
|
|
- restart opendmarc
|
|
|
|
- name: Dmarc directory
|
|
ansible.builtin.file:
|
|
path: /etc/dmarc
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Secondary configuration files
|
|
ansible.builtin.copy:
|
|
src: "./files/dmarc/{{ item }}"
|
|
dest: "/etc/dmarc/{{ item }}"
|
|
mode: 0644
|
|
loop:
|
|
- IgnoreHosts
|
|
notify:
|
|
- Restart opendmarc
|