X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fapache%2Ffiles%2Fapache2;fp=playbooks%2Fdebian%2Froles%2Fapache%2Ffiles%2Fapache2;h=6f97ef6d225baf99f94aec6c4dca9e7609469b72;hb=9801f9b6a2732043a4643d02554defdd474ce63e;hp=0000000000000000000000000000000000000000;hpb=abc22b217f6839eed28281b95b25e035e3b99579;p=ansible.git diff --git a/playbooks/debian/roles/apache/files/apache2 b/playbooks/debian/roles/apache/files/apache2 new file mode 100644 index 0000000..6f97ef6 --- /dev/null +++ b/playbooks/debian/roles/apache/files/apache2 @@ -0,0 +1,22 @@ +/var/log/apache2/*.log +/var/log/apache2/*/*.log +{ + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + if invoke-rc.d apache2 status > /dev/null 2>&1; then \ + invoke-rc.d apache2 reload > /dev/null 2>&1; \ + fi; + endscript + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; \ + endscript +}