Externalize role

This commit is contained in:
Adrien Reslinger 2018-10-08 19:35:21 +02:00
commit 6dd27f2df4
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
18 changed files with 1740 additions and 0 deletions

22
tasks/opendmarc.yml Normal file
View file

@ -0,0 +1,22 @@
---
# 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