Browse Source

update rspamd config

main
L3D 6 months ago
parent
commit
e67b5eed9a
Signed by: l3d GPG Key ID: CD08445BFF4313D1
  1. 2
      defaults/main.yml
  2. 22
      tasks/configure.yml
  3. 2
      tasks/dkim.yml
  4. 3
      tasks/main.yml
  5. 2
      vars/main.yml

2
defaults/main.yml

@ -6,6 +6,8 @@ submodules_versioncheck: false
rspamd__config_path: '/etc/rspamd/local.d/'
rspamd__admin_password: 'ChangeMePl3ase'
rspamd__redis_server: '127.0.0.1'
rspamd__default_owner: '_rspamd'
rspamd__default_group: '_rspamd'
# rspamd config file path
rspamd__multimap_conf_file: 'files/multimap.conf'

22
tasks/configure.yml

@ -5,12 +5,16 @@
src: templates/worker-controller.inc.j2
dest: "{{ rspamd__config_path }}worker-controller.inc"
mode: '0640'
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
- name: Einstellung des logging
become: true
ansible.builtin.copy:
src: files/logging.inc
dest: "{{ rspamd__config_path }}logging.inc"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: milter_headers.conf
@ -18,6 +22,8 @@
ansible.builtin.copy:
src: files/milter_headers.conf
dest: "{{ rspamd__config_path }}milter_headers.conf"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: milter_headers.conf
@ -25,6 +31,8 @@
ansible.builtin.copy:
src: files/classifier-bayes.conf
dest: "{{ rspamd__config_path }}classifier-bayes.conf"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: Einstellug der redis.conf
@ -32,6 +40,8 @@
ansible.builtin.template:
src: templates/redis.conf.j2
dest: "{{ rspamd__config_path }}redis.conf"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: classifier-bayes.conf
@ -39,6 +49,8 @@
ansible.builtin.copy:
src: files/classifier-bayes.conf
dest: "{{ rspamd__config_path }}classifier-bayes.conf"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: Einstellug der eignene black/whitelist
@ -46,6 +58,8 @@
ansible.builtin.copy:
src: "{{ rspamd__multimap_conf_file }}"
dest: "{{ rspamd__config_path }}multimap.conf"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: multimap whitelist_ip.map
@ -53,6 +67,8 @@
ansible.builtin.copy:
src: "{{ rspamd__whitelist_ip_file }}"
dest: "{{ rspamd__config_path }}whitelist_ip.map"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: multimap whitelist_from.map
@ -60,6 +76,8 @@
ansible.builtin.copy:
src: "{{ rspamd__whitelist_from_file }}"
dest: "{{ rspamd__config_path }}whitelist_from.map"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: multimap blacklist_ip.map
@ -67,6 +85,8 @@
ansible.builtin.copy:
src: "{{ rspamd__blacklist_ip_file }}"
dest: "{{ rspamd__config_path }}blacklist_ip.map"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'
- name: multimap blacklist_from.map
@ -74,4 +94,6 @@
ansible.builtin.copy:
src: "{{ rspamd__blacklist_from_file }}"
dest: "{{ rspamd__config_path }}blacklist_from.map"
owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}"
mode: '0640'

2
tasks/dkim.yml

@ -0,0 +1,2 @@
---

3
tasks/main.yml

@ -8,3 +8,6 @@
- name: configure rspamd
include_tasks: configure.yml
- name: rspamd dkim signing
include_tasks: dkim.yml

2
vars/main.yml

@ -1,6 +1,6 @@
---
# versionscheck
playbook_version_number: 4 # should be a integer
playbook_version_number: 5 # should be a integer
playbook_version_path: 'do1jlr.rspamd.version'
_rspamd__admin_password: "{{ rspamd__admin_password | password_hash('bcrypt') }}"
Loading…
Cancel
Save