|
@@ -11,10 +11,26 @@
|
11
|
11
|
tags:
|
12
|
12
|
- dependencies
|
13
|
13
|
|
14
|
|
-- name: Install Rspamd and Rmilter
|
|
14
|
+- name: Install Rspamd, Rmilter, and Redis
|
15
|
15
|
apt: pkg={{ item }} state=installed update_cache=yes
|
16
|
16
|
with_items:
|
17
|
17
|
- rspamd
|
18
|
18
|
- rmilter
|
|
19
|
+ - redis-server
|
19
|
20
|
tags:
|
20
|
21
|
- dependencies
|
|
22
|
+
|
|
23
|
+- name: Configure rmilter
|
|
24
|
+ copy: src=etc_rmilter.conf.common dest=/etc/rmilter.conf.common
|
|
25
|
+
|
|
26
|
+- name: Configure rmilter socket service
|
|
27
|
+ copy: src=lib_systemd_system_rmilter.socket dest=/lib/systemd/system/rmilter.socket
|
|
28
|
+
|
|
29
|
+- name: Start redis
|
|
30
|
+ service: name=redis-server state=started
|
|
31
|
+
|
|
32
|
+- name: Start rspamd systemd socket listener
|
|
33
|
+ service: name=rspamd.socket state=started
|
|
34
|
+
|
|
35
|
+- name: Start rmilter systemd socket listener
|
|
36
|
+ service: name=rmilter.socket state=started
|