# Ansible managed
/var/log/apache2/*.log
{
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
for i in $(ls -d /etc/apache2-* | sed 's/\/etc\/apache2\-//'); do \
systemctl status apache2@"${i}" > /dev/null 2>&1 &&
systemctl reload apache2@"${i}"
done
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi;
endscript
}