Externalize role
This commit is contained in:
commit
6dd27f2df4
18 changed files with 1740 additions and 0 deletions
22
tasks/opendmarc.yml
Normal file
22
tasks/opendmarc.yml
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue