Skip to content

Commit

Permalink
Sets 30 day retention period for apache logs
Browse files Browse the repository at this point in the history
  • Loading branch information
starchy authored and zenmonkeykstop committed Jun 10, 2019
1 parent 97d603d commit 4b5f4fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install_files/ansible-base/roles/app/files/apache2-logrotate.conf
@@ -0,0 +1,10 @@
/var/log/apache2/*.log {
daily
missingok
rotate 30
create 640 root adm
sharedscripts
postrotate
/usr/bin/killall -HUP apache2
endscript
}
Expand Up @@ -116,3 +116,12 @@
- restart apache2
tags:
- apache

- name: Retain no more than one month of apache logs
copy:
src: apache2-logrotate.conf
dest: /etc/logrotate.d/apache2
owner: root
mode: "0644"
tags:
- apache

0 comments on commit 4b5f4fb

Please sign in to comment.