blob: 4c69be53f6208784d2e06beebf78170b24e84ec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
- name: install packages
package:
name:
- spamassassin
state: latest
- name: make directory in postfix chroot
file:
path: /var/spool/postfix/spamd
owner: root
group: root
mode: '0755'
state: directory
- name: deploy configuration
template:
src: local.cf.j2
dest: /etc/spamassassin/local.cf
owner: root
group: root
mode: '0644'
- name: deploy defaults file
copy:
src: defaults
dest: /etc/default/spamd
owner: root
group: root
mode: '0644'
- name: enable spamassassin
systemd:
enabled: yes
masked: no
name: spamd
- name: restart spamassassin
service:
name: spamd
state: restarted
|