From 724d877995dfcc10c462a18dcb4ea6c8b60c2d03 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 2 Jul 2023 19:04:30 -0400 Subject: initial commit --- roles/opendmarc/tasks/main.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 roles/opendmarc/tasks/main.yml (limited to 'roles/opendmarc/tasks') diff --git a/roles/opendmarc/tasks/main.yml b/roles/opendmarc/tasks/main.yml new file mode 100644 index 0000000..6c2fb8b --- /dev/null +++ b/roles/opendmarc/tasks/main.yml @@ -0,0 +1,39 @@ +- name: install packages + package: + name: + - opendmarc + - dbconfig-no-thanks + state: latest + +- name: make directory for socket inside postfix chroot + file: + path: /var/spool/postfix/opendmarc + owner: opendmarc + group: opendmarc + mode: '770' + state: directory + +- name: add postfix user to opendmarc group + user: + name: postfix + groups: opendmarc + append: yes + +- name: deploy configuration + copy: + src: opendmarc.conf + dest: /etc/opendmarc.conf + owner: root + group: root + mode: '0644' + +- name: enable opendmarc + systemd: + enabled: yes + masked: no + name: opendmarc + +- name: restart opendmarc + service: + name: opendmarc + state: restarted -- cgit v1.2.3