You've already forked ansible-role-directadmin
Initial commit
This commit is contained in:
16
tasks/config/mail/spamassassin.yml
Normal file
16
tasks/config/mail/spamassassin.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Enable Spamassassin learning
|
||||
blockinfile:
|
||||
path: /etc/systemd/system/spamassassin.service.d/override.conf
|
||||
state: present
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
block: |
|
||||
[Service]
|
||||
ExecStart=
|
||||
# Add "-l" flag to spamd
|
||||
ExecStart=/usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 --ipv4 -l
|
||||
create: true
|
||||
backup: false
|
||||
notify:
|
||||
- "directadmin : Reload Systemd"
|
||||
- "directadmin : Restart Spamassassin"
|
||||
Reference in New Issue
Block a user