Adding logrotate for Jenkins

This commit is contained in:
Denis Nutiu 2017-05-06 12:35:35 +00:00 committed by Kevin Fenzi
parent 1cf1221076
commit 123442b2f9
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,9 @@
/var/log/jenkins/jenkins.log {
rotate 5
weekly
compress
delaycompress
missingok
notifempty
copytruncate
}

View file

@ -56,6 +56,17 @@
- jenkins/master
- config
- name: install jenkins logrotate file
copy: >
src="jenkins.logrotate"
dest="/etc/logrotate.d/jenkins"
notify:
- restart jenkins
tags:
- jenkins
- jenkins/master
- config
- name: install jenkins launcher config file
copy: >
src="jenkins.conf"