|
@@ -1,10 +1,23 @@
|
1
|
1
|
- name: Install OpenDMARC milter and related packages
|
2
|
|
- apt: pkg={{ item }} state=installed update_cache=yes
|
|
2
|
+ apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600
|
3
|
3
|
with_items:
|
4
|
4
|
- mysql-server
|
5
|
5
|
- python-mysqldb
|
6
|
6
|
- opendmarc
|
7
|
7
|
|
|
8
|
+- name: Patch opendmarc scripts (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742447)
|
|
9
|
+ lineinfile: dest=/usr/sbin/{{ item }} regexp='^require DBD::' line='require DBD::mysql;'
|
|
10
|
+ with_items:
|
|
11
|
+ - opendmarc-import
|
|
12
|
+ - opendmarc-reports
|
|
13
|
+ - opendmarc-params
|
|
14
|
+
|
|
15
|
+- name: Patch opendmarc scripts part deux (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742447)
|
|
16
|
+ lineinfile: dest=/usr/sbin/{{ item }} regexp='^my \$dbscheme' line='my $dbscheme = "mysql";'
|
|
17
|
+ with_items:
|
|
18
|
+ - opendmarc-reports
|
|
19
|
+ - opendmarc-import
|
|
20
|
+
|
8
|
21
|
- name: Copy OpenDMARC configuration file into place
|
9
|
22
|
template: src=etc_opendmarc.conf.j2 dest=/etc/opendmarc.conf owner=root group=root
|
10
|
23
|
notify: restart opendmarc
|