|
@@ -0,0 +1,26 @@
|
|
|
|
+{% if ansible_prolog -%}
|
|
|
|
+{% from 'templates/ansible/prolog.j2' import prolog with context %}
|
|
|
|
+{{ prolog() }}
|
|
|
|
+{% endif -%}
|
|
|
|
+/var/log/apache2/*.log {
|
|
|
|
+ daily
|
|
|
|
+ missingok
|
|
|
|
+ rotate 1000
|
|
|
|
+ dateext
|
|
|
|
+ dateyesterday
|
|
|
|
+ compress
|
|
|
|
+ delaycompress
|
|
|
|
+ notifempty
|
|
|
|
+ create 0640 www-data adm
|
|
|
|
+ sharedscripts
|
|
|
|
+ postrotate
|
|
|
|
+ if /etc/init.d/apache2 status > /dev/null ; then \
|
|
|
|
+ /etc/init.d/apache2 reload > /dev/null; \
|
|
|
|
+ fi;
|
|
|
|
+ endscript
|
|
|
|
+ prerotate
|
|
|
|
+ if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
|
|
|
+ run-parts /etc/logrotate.d/httpd-prerotate; \
|
|
|
|
+ fi; \
|
|
|
|
+ endscript
|
|
|
|
+}
|