mirror of
https://github.com/roles-ansible/ansible_role_rspamd.git
synced 2024-08-16 17:09:51 +02:00
restart if changed
This commit is contained in:
parent
e67b5eed9a
commit
c4848bcaa3
3 changed files with 18 additions and 1 deletions
|
@ -3,3 +3,9 @@
|
|||
become: true
|
||||
apt:
|
||||
update_cache: true
|
||||
|
||||
- name: systemctl restart rspamd
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: 'rspamd'
|
||||
state: 'reloaded'
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
mode: '0640'
|
||||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: Einstellung des logging
|
||||
become: true
|
||||
|
@ -16,6 +17,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: milter_headers.conf
|
||||
become: true
|
||||
|
@ -25,6 +27,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: milter_headers.conf
|
||||
become: true
|
||||
|
@ -34,6 +37,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: Einstellug der redis.conf
|
||||
become: true
|
||||
|
@ -43,6 +47,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: classifier-bayes.conf
|
||||
become: true
|
||||
|
@ -52,6 +57,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: Einstellug der eignene black/whitelist
|
||||
become: true
|
||||
|
@ -61,6 +67,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: multimap whitelist_ip.map
|
||||
become: true
|
||||
|
@ -70,6 +77,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: multimap whitelist_from.map
|
||||
become: true
|
||||
|
@ -79,6 +87,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: multimap blacklist_ip.map
|
||||
become: true
|
||||
|
@ -88,6 +97,7 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
||||
- name: multimap blacklist_from.map
|
||||
become: true
|
||||
|
@ -97,3 +107,4 @@
|
|||
owner: "{{ rspamd__default_owner }}"
|
||||
group: "{{ rspamd__default_group }}"
|
||||
mode: '0640'
|
||||
notify: systemctl restart rspamd
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# versionscheck
|
||||
playbook_version_number: 5 # should be a integer
|
||||
playbook_version_number: 6 # should be a integer
|
||||
playbook_version_path: 'do1jlr.rspamd.version'
|
||||
|
||||
_rspamd__admin_password: "{{ rspamd__admin_password | password_hash('bcrypt') }}"
|
||||
|
|
Loading…
Reference in a new issue