]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian/email): Put spamd's socket in `/run`
authorOleg Broytman <phd@phdru.name>
Thu, 12 Feb 2026 08:07:52 +0000 (11:07 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 12 Feb 2026 08:07:52 +0000 (11:07 +0300)
Move the socket outside of SystemD private `/tmp/`.

playbooks/roles/debian/email/handlers/main.yaml
playbooks/roles/debian/email/tasks/main.yaml

index 3bb80614d0a8a6937b4fad22d3548724774658b9..95dad5a830b18178b26f16b6027c82fe1069d1ca 100644 (file)
@@ -1,5 +1,5 @@
-- name: Restart spamassassin
+- name: Restart spamd
   become: true
   service:
-    name: spamassassin
+    name: spamd
     state: reloaded
index baae9fb78b70776d4a19a69ace4ae71456431757..64ce81186faa3f88533849f7d4779298a199dd64 100644 (file)
@@ -12,5 +12,5 @@
   replace:
     path: /etc/default/spamd
     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
+    replace: 'OPTIONS="--create-prefs --max-children 5 --helper-home-dir --socketpath=/run/spamassassin.sock"'
+  notify: Restart spamd