feat: add rspamd role

This commit is contained in:
s3lph 2023-07-16 00:11:47 +02:00
parent ceef1ada0d
commit 658fdc54a4
2 changed files with 7 additions and 9 deletions
roles/rspamd
handlers
tasks

View file

@ -0,0 +1,6 @@
---
- name: reload rspamd
ansible.builtin.service:
name: rspamd
state: reloaded

View file

@ -10,15 +10,7 @@
loop:
- worker-controller.inc
- redis.conf
notify: reload rspamd
- name: Render /etc/rspamd/local.d/
ansible.builtin.template:
src: etc/rspamd/local.d/worker-controller.inc.j2
dest: /etc/rspamd/local.d/worker-controller.inc
owner: root
group: root
mode: "0644"
- greylist.conf
notify: reload rspamd
- name: Start and enable redis-server