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

add wite and blacklist files

This commit is contained in:
L3D 2021-01-23 00:46:39 +01:00
parent 20551f843d
commit 61455f6e6a
Signed by: l3d
GPG key ID: CD08445BFF4313D1
7 changed files with 35 additions and 1 deletions

View file

@ -6,4 +6,10 @@ 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 config file path
rspamd__multimap_conf_file: 'files/multimap.conf' rspamd__multimap_conf_file: 'files/multimap.conf'
rspamd__whitelist_ip_file: 'files/whitelist_ip.map'
rspamd__whitelist_from_file: 'files/whitelist_from.map'
rspamd__blacklist_ip_file: 'files/blacklist_ip.map'
rspamd__blacklist_from_file: 'files/blacklist_from.map'

0
files/blacklist_from.map Normal file
View file

0
files/blacklist_ip.map Normal file
View file

0
files/whitelist_from.map Normal file
View file

0
files/whitelist_ip.map Normal file
View file

View file

@ -47,3 +47,31 @@
src: "{{ rspamd__multimap_conf_file }}" src: "{{ rspamd__multimap_conf_file }}"
dest: "{{ rspamd__config_path }}multimap.conf" dest: "{{ rspamd__config_path }}multimap.conf"
mode: '0640' mode: '0640'
- name: multimap whitelist_ip.map
become: true
ansible.builtin.copy:
src: "{{ rspamd__whitelist_ip_file }}"
dest: "{{ rspamd__config_path }}whitelist_ip.map"
mode: '0640'
- name: multimap whitelist_from.map
become: true
ansible.builtin.copy:
src: "{{ rspamd__whitelist_from_file }}"
dest: "{{ rspamd__config_path }}whitelist_from.map"
mode: '0640'
- name: multimap blacklist_ip.map
become: true
ansible.builtin.copy:
src: "{{ rspamd__blacklist_ip_file }}"
dest: "{{ rspamd__config_path }}blacklist_ip.map"
mode: '0640'
- name: multimap blacklist_from.map
become: true
ansible.builtin.copy:
src: "{{ rspamd__blacklist_from_file }}"
dest: "{{ rspamd__config_path }}blacklist_from.map"
mode: '0640'

View file

@ -1,6 +1,6 @@
--- ---
# versionscheck # versionscheck
playbook_version_number: 3 # should be a integer playbook_version_number: 4 # 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') }}"