Adding ansible section
This commit is contained in:
16
ansible/roles/varnish/files/logrotatencsa.conf
Normal file
16
ansible/roles/varnish/files/logrotatencsa.conf
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user