From 3ba746801d48d0c8375a88097ccd566c007eb8b2 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 14 Dec 2013 22:22:41 +0100 Subject: Auto-update Spamassassin's ruleset. --- roles/IMAP/tasks/spam.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'roles/IMAP') diff --git a/roles/IMAP/tasks/spam.yml b/roles/IMAP/tasks/spam.yml index d326656..e3baca0 100644 --- a/roles/IMAP/tasks/spam.yml +++ b/roles/IMAP/tasks/spam.yml @@ -28,12 +28,15 @@ notify: - Restart Amavis -- name: Ensure SpamAssassin is not auto-started at boot time +- name: Provision /etc/default/spamassassin lineinfile: dest=/etc/default/spamassassin - regexp='^(\s*#)?\s*ENABLED=' - line='ENABLED=0' + regexp='^(\s*#)?\s*{{ item.var }}=' + "line={{ item.var }}={{ item.value }}" owner=root group=root mode=0644 + with_items: + - { var: ENABLED, value: 0 } + - { var: CRON, value: 1 } - name: Create a 'amavis' SQL user # This *must* be the user we run spamd as -- cgit v1.2.3