X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Froles%2Fdebian%2Fapache%2Ffiles%2Fapache2;fp=playbooks%2Froles%2Fdebian%2Fapache%2Ffiles%2Fapache2;h=6f97ef6d225baf99f94aec6c4dca9e7609469b72;hb=424c41462e9f4f38fdf666f2180342a8268a95c7;hp=0000000000000000000000000000000000000000;hpb=412c5f3f80f4aadecce7e27f6d0f8616a665f48d;p=ansible.git diff --git a/playbooks/roles/debian/apache/files/apache2 b/playbooks/roles/debian/apache/files/apache2 new file mode 100644 index 0000000..6f97ef6 --- /dev/null +++ b/playbooks/roles/debian/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 +}