mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding logrotate for mongo.
This commit is contained in:
parent
58c11935ee
commit
17e6f7f424
2 changed files with 15 additions and 0 deletions
10
ansible/roles/mongo/files/logrotate.conf
Normal file
10
ansible/roles/mongo/files/logrotate.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
/var/log/mongodb/*.log {
|
||||
weekly
|
||||
rotate 10
|
||||
size 256M
|
||||
copytruncate
|
||||
delaycompress
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
}
|
|
@ -53,6 +53,11 @@
|
|||
notify:
|
||||
- reload consul
|
||||
|
||||
- name: Setup logrotate for mongo
|
||||
become: yes
|
||||
copy: src=logrotate.conf dest=/etc/logrotate.d/mongodb mode=0755
|
||||
tags: logrotate
|
||||
|
||||
- name: Add sanity checkers cronjob for disk usage
|
||||
become: yes
|
||||
cron:
|
||||
|
|
Loading…
Add table
Reference in a new issue