diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-12-14 22:22:41 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:22 +0200 |
commit | 3ba746801d48d0c8375a88097ccd566c007eb8b2 (patch) | |
tree | 0ad3abd7c8d6c17b3182ca451612a7d4a2350300 /roles/IMAP | |
parent | bd92a9f645f53da01c13d1411cef7fe20fdd4503 (diff) |
Auto-update Spamassassin's ruleset.
Diffstat (limited to 'roles/IMAP')
-rw-r--r-- | roles/IMAP/tasks/spam.yml | 9 |
1 files changed, 6 insertions, 3 deletions
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 |