Adding ansible section

This commit is contained in:
2025-05-22 14:43:42 +02:00
parent 8c6e940433
commit 0985d65f86
26 changed files with 900 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/var/log/varnishd.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 0640 www-data adm
}

View File

@@ -0,0 +1,16 @@
/data/log/web/*-access.log /data/log/web/varnishncsa.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 0640 varnishlog varnish
lastaction
systemctl restart varnishncsa-privateapi.service
systemctl restart varnishncsa-publicapi.service
systemctl restart varnishncsa-purge.service
systemctl restart varnishncsa-webservices.service
systemctl restart varnishncsa.service
endscript
}

View File

@@ -0,0 +1,2 @@
if $programname == 'varnishd' then /var/log/varnishd.log
&stop