Browse Source

add wite and blacklist files

main
L3D 6 months ago
parent
commit
61455f6e6a
Signed by: l3d GPG Key ID: CD08445BFF4313D1
  1. 6
      defaults/main.yml
  2. 0
      files/blacklist_from.map
  3. 0
      files/blacklist_ip.map
  4. 0
      files/whitelist_from.map
  5. 0
      files/whitelist_ip.map
  6. 28
      tasks/configure.yml
  7. 2
      vars/main.yml

6
defaults/main.yml

@ -6,4 +6,10 @@ submodules_versioncheck: false
rspamd__config_path: '/etc/rspamd/local.d/'
rspamd__admin_password: 'ChangeMePl3ase'
rspamd__redis_server: '127.0.0.1'
# rspamd config file path
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

0
files/blacklist_ip.map

0
files/whitelist_from.map

0
files/whitelist_ip.map

28
tasks/configure.yml

@ -47,3 +47,31 @@
src: "{{ rspamd__multimap_conf_file }}"
dest: "{{ rspamd__config_path }}multimap.conf"
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'

2
vars/main.yml

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