summaryrefslogtreecommitdiff
path: root/roles/mail/rspamd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mail/rspamd/tasks')
-rw-r--r--roles/mail/rspamd/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/mail/rspamd/tasks/main.yml b/roles/mail/rspamd/tasks/main.yml
index 7546c8a5..503c3669 100644
--- a/roles/mail/rspamd/tasks/main.yml
+++ b/roles/mail/rspamd/tasks/main.yml
@@ -68,3 +68,25 @@
proxy_pass: http://127.0.0.1:11334
include_role:
name: nginx/vhost
+
+- name: generate local config files
+ loop: "{{ rspamd_modules_local_config | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ copy:
+ content: |
+ # ansible generated
+ {{ item.value }}
+ dest: /etc/rspamd/local.d/{{ item.key }}.conf
+ notify: reload rspamd
+
+- name: generate override config files
+ loop: "{{ rspamd_modules_override_config | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ copy:
+ content: |
+ # ansible generated
+ {{ item.value }}
+ dest: /etc/rspamd/override.d/{{ item.key }}.conf
+ notify: reload rspamd