feat: add rspamd role
This commit is contained in:
parent
ceef1ada0d
commit
658fdc54a4
2 changed files with 7 additions and 9 deletions
roles/rspamd
6
roles/rspamd/handlers/main.yml
Normal file
6
roles/rspamd/handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
- name: reload rspamd
|
||||
ansible.builtin.service:
|
||||
name: rspamd
|
||||
state: reloaded
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue