Set apache logrotate on all the ansible hosts right.
This commit is contained in:
parent
34432689a6
commit
580158b7a6
2 changed files with 18 additions and 0 deletions
13
files/httpd/httpd.logrotate
Normal file
13
files/httpd/httpd.logrotate
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/var/log/httpd/*log {
|
||||||
|
daily
|
||||||
|
rotate 7
|
||||||
|
missingok
|
||||||
|
ifempty
|
||||||
|
compress
|
||||||
|
compresscmd /usr/bin/bzip2
|
||||||
|
uncompresscmd /usr/bin/bunzip2
|
||||||
|
compressext .bz2
|
||||||
|
dateext
|
||||||
|
sharedscripts
|
||||||
|
copytruncate
|
||||||
|
}
|
|
@ -54,3 +54,8 @@
|
||||||
- config
|
- config
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
|
- name: setup logrotate to our needs
|
||||||
|
copy: src="{{ files }}/httpd/httpd.logrotate" dest=/etc/logrotate.d/httpd
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- apache
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue