Add Sought ruleset to spamassassin.
This commit is contained in:
parent
b50ed3717c
commit
91f2bd73e5
@ -126,7 +126,19 @@
|
||||
become: yes
|
||||
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
|
||||
|
||||
- name: Start amavis
|
||||
|
Loading…
Reference in New Issue
Block a user