spamassassin: Initial version of role

This commit is contained in:
Timo Makinen 2020-09-24 17:36:18 +00:00
parent 2db1a47b1a
commit a70fb0ae43
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
- name: install packages
package:
name: spamassassin
state: installed
- name: copy local config
copy:
dest: /etc/mail/spamassassin/local.cf
src: local.cf
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart spamassassin
- name: enable service
service:
name: spamassassin
enabled: true
state: started