1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: install spamassassin
20 - name: copy spamd defaults
23 dest: "/etc/default/spamd"
28 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/spamd.defaults"
29 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/spamd.defaults"
30 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/spamd.defaults"
31 - "default/spamd.defaults"
32 notify: restart spamd.service
35 - name: copy spamassassin config
38 dest: "/etc/spamassassin/local.cf"
43 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/local.cf"
44 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/local.cf"
45 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/local.cf"
47 notify: restart spamd.service
50 - name: copy spamassassin-expire cronjob
53 dest: "/etc/cron.d/spamassassin-expire"
58 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/spamassassin-expire.cron"
59 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/spamassassin-expire.cron"
60 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/spamassassin-expire.cron"
61 - "default/spamassassin-expire.cron"
64 - name: enable and start spamd.service
65 include_role: name="base/systemd/enable-and-start"
67 service_name: spamd.service