ansible-role-postfix/tasks/opendmarc.yml
Adrien 2059989d8a
All checks were successful
continuous-integration/drone/push Build is passing
fix linter
2020-06-02 21:30:38 +02:00

35 lines
709 B
YAML

---
# Need EPEL repo
- name: Install template config file
template:
src: etc/opendmarc.conf.j2
dest: /etc/opendmarc.conf
owner: root
group: root
mode: 0644
- name: Install update public_suffix_list file for opendmarc
get_url:
url: https://publicsuffix.org/list/public_suffix_list.dat
dest: /etc/opendmarc/public_suffix_list.dat
group: opendmarc
owner: opendmarc
mode: 0644
- name: Install updater script
copy:
src: etc/cron.weekly/opendmarc
dest: /etc/cron.weekly/opendmarc
owner: root
group: root
mode: 0755
notify: Restart OpenDMARC
- name: Enable OpenDMARC on boot
service:
name: opendmarc
state: started
enabled: yes