Add Sought ruleset to spamassassin.

This commit is contained in:
Markus 2016-04-06 19:30:16 +02:00
parent b50ed3717c
commit 91f2bd73e5

View File

@ -126,7 +126,19 @@
become: yes become: yes
become_user: amavis become_user: amavis
- name: Enable spamassassin cron-job - name: Download GPG key for Sought ruleset
get_url: url=http://yerp.org/rules/GPG.KEY dest=/etc/spamassassin/sought_ruleset.key
- name: Import GPG key for Sought ruleset
become_user: debian-spamd
register: gpg_import
command: sa-update --import /etc/spamassassin/sought_ruleset.key
changed_when: 'gpg_import.stderr.find("imported") != -1'
- name: Enable sa-update cron-job
cron: name=sa-update minute="0" hour="*/6" job="/usr/bin/sa-update -v --gpgkey 6C6191E3 --channel sought.rules.yerp.org --channel updates.spamassassin.org"
- name: Enable spamd cron-job
copy: src=spamassassin dest=/etc/default/spamassassin copy: src=spamassassin dest=/etc/default/spamassassin
- name: Start amavis - name: Start amavis