This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-warehost/mailserver/tasks/spamassassin.yml

11 lines
261 B
YAML
Raw Normal View History

2016-11-25 00:04:34 +01:00
---
- name: Spamassassin update
command: /usr/bin/vendor_perl/sa-update -v
2016-11-25 00:04:34 +01:00
register: bass_result
changed_when: "bass_result.rc != 1"
ignore_errors: yes
notify: restart spamassassin
- name: Enable spamassassin
service: name=spamassassin enabled=yes