1
0
Fork 0
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:
L3D 2021-01-25 00:14:46 +01:00
parent e67b5eed9a
commit c4848bcaa3
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 18 additions and 1 deletions

View file

@ -3,3 +3,9 @@
become: true become: true
apt: apt:
update_cache: true update_cache: true
- name: systemctl restart rspamd
become: true
ansible.builtin.systemd:
name: 'rspamd'
state: 'reloaded'

View file

@ -7,6 +7,7 @@
mode: '0640' mode: '0640'
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
notify: systemctl restart rspamd
- name: Einstellung des logging - name: Einstellung des logging
become: true become: true
@ -16,6 +17,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: milter_headers.conf - name: milter_headers.conf
become: true become: true
@ -25,6 +27,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: milter_headers.conf - name: milter_headers.conf
become: true become: true
@ -34,6 +37,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: Einstellug der redis.conf - name: Einstellug der redis.conf
become: true become: true
@ -43,6 +47,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: classifier-bayes.conf - name: classifier-bayes.conf
become: true become: true
@ -52,6 +57,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: Einstellug der eignene black/whitelist - name: Einstellug der eignene black/whitelist
become: true become: true
@ -61,6 +67,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: multimap whitelist_ip.map - name: multimap whitelist_ip.map
become: true become: true
@ -70,6 +77,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: multimap whitelist_from.map - name: multimap whitelist_from.map
become: true become: true
@ -79,6 +87,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: multimap blacklist_ip.map - name: multimap blacklist_ip.map
become: true become: true
@ -88,6 +97,7 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd
- name: multimap blacklist_from.map - name: multimap blacklist_from.map
become: true become: true
@ -97,3 +107,4 @@
owner: "{{ rspamd__default_owner }}" owner: "{{ rspamd__default_owner }}"
group: "{{ rspamd__default_group }}" group: "{{ rspamd__default_group }}"
mode: '0640' mode: '0640'
notify: systemctl restart rspamd

View file

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