From 6f0fb575951e7a3f531a263389b674ad572df1b2 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Mon, 6 Nov 2017 11:29:15 +0100 Subject: [PATCH] packweb-apache: fix awstats cron --- packweb-apache/tasks/awstats.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packweb-apache/tasks/awstats.yml b/packweb-apache/tasks/awstats.yml index 1919b17d..6d8d9eba 100644 --- a/packweb-apache/tasks/awstats.yml +++ b/packweb-apache/tasks/awstats.yml @@ -46,3 +46,12 @@ create: yes regexp: '-config=awstats' line: "10 */6 * * * root umask 033; [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null" + +- name: Remove default awstat cron's tasks + lineinfile: + dest: /etc/cron.d/awstats + regexp: "{{ item }}" + state: absent + with_items: + - 'update\.sh' + - 'buildstatic\.sh'