1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_rspamd.git synced 2024-08-16 17:09:51 +02:00

update rspamd config

This commit is contained in:
L3D 2021-01-25 00:06:10 +01:00
parent 61455f6e6a
commit e67b5eed9a
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 30 additions and 1 deletions

View file

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

View file

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

2
tasks/dkim.yml Normal file
View file

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

View file

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

View file

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