From: Oleg Broytman Date: Fri, 11 Mar 2022 00:56:24 +0000 (+0300) Subject: Feat(debian/email): Configure `/etc/default/spamassassin` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bcc39e768191d46388633679d0ef82131e70da27;p=ansible.git Feat(debian/email): Configure `/etc/default/spamassassin` Add `--socketpath`. --- diff --git a/playbooks/roles/debian/email/tasks/main.yml b/playbooks/roles/debian/email/tasks/main.yml index 0ecc3a8..ccf18cc 100644 --- a/playbooks/roles/debian/email/tasks/main.yml +++ b/playbooks/roles/debian/email/tasks/main.yml @@ -6,3 +6,18 @@ name: ['exim4', 'spamassassin', 'spamc'] state: latest update_cache: yes + +- name: Configure /etc/default/spamassassin + become: true + replace: + path: /etc/default/spamassassin + regexp: '^OPTIONS="--create-prefs --max-children 5 --helper-home-dir"$' + replace: 'OPTIONS="--create-prefs --max-children 5 --helper-home-dir --socketpath=/tmp/spamassassin.sock"' + notify: Restart spamassassin + +handlers: + - name: Restart spamassassin + become: true + service: + name: spamassassin + state: reloaded