Commit 08a45956 by Kevin Falcone

Merge pull request #2391 from edx/jibsheet/only-rotate-logs

Only rotate .log files
parents 3bea19e3 fcd247b4
......@@ -127,6 +127,10 @@
- name: install logrotate configuration
template: src=mongo_logrotate.j2 dest=/etc/logrotate.d/hourly/mongo
tags:
- "install"
- "install:configuration"
- "logrotate"
- name: start mongo service
service: name=mongod state=started
......
{{ mongo_log_dir }}/* {
{{ mongo_log_dir }}/*.log {
create
compress
copytruncate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment