ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit b969f8430404be01554681cac4e15646ab0a0e36
parent c370ae55f20ceaaad24dc1af7e7fa66d5f127f09
Author: Leah Thein <leah@toaster.fritz.box>
Date: Thu, 3 Dec 2020 21:47:56 +0100

maddy: enable log
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/roles/maddy/tasks/main.yml b/roles/maddy/tasks/main.yml
@@ -20,6 +20,14 @@
     owner: maddy
     group: maddy
 
+- name: create log-file for maddy
+  file:
+    path:  /var/log/maddy.log
+    state: touch
+    owner: maddy
+    group: maddy
+    mode:  0644
+
 - name: Copy mail firewall-rule to destination host
   copy:
     src: config-files/awall/mail.json
diff --git a/roles/maddy/templates/maddy.conf.j2 b/roles/maddy/templates/maddy.conf.j2
@@ -1,5 +1,7 @@
 ## maddy 0.4 - default configuration file
 
+log syslog /var/log/maddy.log
+
 # ----------------------------------------------------------------------------
 # Base variables
  $(hostname) = {{maddy.hostname}}