Skip to content
Snippets Groups Projects
Commit 79215f38 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#1590 Update logrotate to keep logs for only 7 days for GDPR compliance

parent dbda25de
No related branches found
No related tags found
No related merge requests found
{{ jailroot }}/{{ item.jail.name }}/var/log/apache2/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 644 root {{ item.jail.name }}
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
daily
rotate 7
missingok
compress
delaycompress
notifempty
create 644 root {{ item.jail.name }}
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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment