From e272cffa04025585d902b80c687c70f1b283197c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 17 May 2015 13:30:16 +0200 Subject: Don't restart sympa on logrotate. This is unnecessary since it uses syslog. --- roles/lists/tasks/sympa.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles') 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) -- cgit v1.2.3