Adding logrotate for Jenkins
This commit is contained in:
parent
1cf1221076
commit
123442b2f9
2 changed files with 20 additions and 0 deletions
9
roles/jenkins/master/files/jenkins.logrotate
Normal file
9
roles/jenkins/master/files/jenkins.logrotate
Normal file
|
@ -0,0 +1,9 @@
|
|||
/var/log/jenkins/jenkins.log {
|
||||
rotate 5
|
||||
weekly
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue