add some more config files

This commit is contained in:
2025-05-25 11:07:02 +02:00
parent c5e2ee3a3e
commit 7a391feb70
11 changed files with 92 additions and 2 deletions

View File

@@ -16,6 +16,30 @@
state: present
name: rspamd
- name: configure rspamd
notify: restart rspamd
block:
- ansible.builtin.template:
src: "{{ item }}"
dest: /etc/rspamd/local.d/
loop:
- multimap.conf
- milter_headers.conf
- ip_whitelist.map
- host_whitelist.map
- address_whitelist.map
- address_blacklist.map
- actions.conf
- worker-controller.inc
- ansible.builtin.lineinfile:
create: true
path: /etc/rspamd/override.d/worker-proxy.inc
line: bind_socket = *:11332
- ansible.builtin.lineinfile:
create: true
path: /etc/rspamd/override.d/logging.inc
line: 'level = "notice";'
- name: open firewall port
when: use_ufw
community.general.ufw:
@@ -28,7 +52,7 @@
- { ip: 163.172.96.97, comment: submarine }
- { ip: 80.67.185.27, comment: altc01 }
- { ip: 51.15.130.230, comment: mutine }
- { ip: 51.15.99.153, comment: celestine }
- { ip: 57.128.123.211, comment: mimine }
- { ip: 51.15.253.78, comment: cosine }
- name: ensure rspamd listen everywhere