summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-17 13:30:16 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:50 +0200
commite272cffa04025585d902b80c687c70f1b283197c (patch)
tree4dcda3c0f1e32b82b64ccc2e9ed4135441718c52
parent87e658e7acc8e61611442703ba4dca8ba6dd4cde (diff)
Don't restart sympa on logrotate.
This is unnecessary since it uses syslog.
-rw-r--r--roles/lists/tasks/sympa.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/lists/tasks/sympa.yml b/roles/lists/tasks/sympa.yml
index d1ae505..49a1423 100644
--- a/roles/lists/tasks/sympa.yml
+++ b/roles/lists/tasks/sympa.yml
@@ -53,6 +53,14 @@
notify:
- Restart Sympa
+# sympa uses to syslog, there is no need to reload or restart it when
+# rotating logs
+- name: Don't restart sympa on logrotate
+ lineinfile: "dest=/etc/logrotate.d/sympa state=absent
+ regexp='\\bsympa reload\\b'"
+ tags:
+ - logrotate
+
- name: Start Sympa
service: name=sympa state=started
when: not (r1.changed or r2.changed or r3.changed or r4.changed)