Set apache logrotate on all the ansible hosts right.

This commit is contained in:
Kevin Fenzi 2014-06-29 17:38:02 +00:00
parent 34432689a6
commit 580158b7a6
2 changed files with 18 additions and 0 deletions

View 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
}

View file

@ -54,3 +54,8 @@
- config
- apache
- name: setup logrotate to our needs
copy: src="{{ files }}/httpd/httpd.logrotate" dest=/etc/logrotate.d/httpd
tags:
- config
- apache