Files
local.realm.ansible/playbooks/sa-update.yml
T
2020-12-08 09:12:26 +01:00

24 lines
585 B
YAML

---
- hosts: www.solusar.de
become: true
tasks:
- name: "Update Heinlein SA Rules"
command: sa-update --nogpg --channel spamassassin.heinlein-support.de
register: sa_heinlein
failed_when: sa_heinlein.stdout_lines != []
notify:
- "restart spamassassin"
- name: "Update Spamassassin SA Rules"
command: sa-update --channel updates.spamassassin.org
register: sa_origin
failed_when: sa_origin.stdout_lines != []
notify:
- "restart spamassassin"
handlers:
- name: restart spamassassin
shell: systemctl restart spamassassin