master #15

Merged
adellam merged 2 commits from adellam/ansible-role-spamassassin:master into master 2020-08-14 12:10:55 +02:00
1 changed files with 5 additions and 4 deletions
Showing only changes of commit 25e5032368 - Show all commits

View File

@ -12,16 +12,17 @@
- name: Install the spamassassin milter startup options
template: src=spamass-milter_sysconfig.j2 dest=/etc/sysconfig/spamass-milter owner=root group=root mode=0444
notify: Restart spamass-milter
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_service', 'spamass_milter', 'spamass_milter_conf' ]
- name: Ensure that the spamassassin service is started and enabled
- name: Ensure that the spamass-milter service is started and enabled
service: name=spamass-milter state=started enabled=yes
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_service' ]
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_service', 'spamass_milter' ]
- name: Manage the spamassassin service
block:
- name: Shut down the spamassassin service if it is meant to be remote
- name: Shut down the spamassassin service when we connect to a remote service
service: name=spamassassin state=stopped enabled=no
when: not spamassassin_install | bool
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_service' ]
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_service', 'spamass_milter' ]