packweb-apache: comment cron task instead of remove it and don't remove buildstatic.sh
This commit is contained in:
parent
6f0fb57595
commit
6d2506a0ce
|
@ -47,11 +47,10 @@
|
||||||
regexp: '-config=awstats'
|
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"
|
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
|
- name: Comment default awstat cron's tasks
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/cron.d/awstats
|
dest: /etc/cron.d/awstats
|
||||||
regexp: "{{ item }}"
|
regexp: "(?i)^([^#]*update\\.sh.*)"
|
||||||
state: absent
|
line: '#\1'
|
||||||
with_items:
|
backrefs: yes
|
||||||
- 'update\.sh'
|
state: present
|
||||||
- 'buildstatic\.sh'
|
|
||||||
|
|
Loading…
Reference in a new issue