Skip to content

Commit 838774f

Browse files
author
Andre Rodier
committed
Minor update on the rspamd role role.
Allow to run and update the postfix milters only, using the following command: --- ROLE=rspamd ansible-playbook -t facts,postfix install.yml --- This will ensure rspamd is included in the postfix milter. This is useful when you ran the postfix install
1 parent ed87474 commit 838774f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

roles/rspamd/tasks/install/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
- name: Add the filter to postfix
2323
ansible.builtin.include_tasks: install/postfix.yml
24+
tags: postfix
2425

2526
- name: Configure rspamd to use the proxy
2627
ansible.builtin.include_tasks: install/proxy.yml

roles/rspamd/tasks/install/postfix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77
owner: _rspamd
88
group: _rspamd
99
mode: '0750'
10+
tags: postfix
1011

1112
- name: Add postfix to rspamd group
1213
notify: Restart postfix
1314
ansible.builtin.user:
1415
name: postfix
1516
groups: _rspamd
1617
append: true
18+
tags: postfix
1719

1820
- name: Install the milter
1921
notify: Restart postfix
2022
ansible.builtin.replace:
2123
path: /etc/postfix/main.cf
2224
regexp: '^ # antispam:'
2325
replace: ' unix:rspamd/rspamd.sock'
26+
tags: postfix

0 commit comments

Comments
 (0)