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 @@ ...@@ -127,6 +127,10 @@
- name: install logrotate configuration - name: install logrotate configuration
template: src=mongo_logrotate.j2 dest=/etc/logrotate.d/hourly/mongo template: src=mongo_logrotate.j2 dest=/etc/logrotate.d/hourly/mongo
tags:
- "install"
- "install:configuration"
- "logrotate"
- name: start mongo service - name: start mongo service
service: name=mongod state=started service: name=mongod state=started
......
{{ mongo_log_dir }}/* { {{ mongo_log_dir }}/*.log {
create create
compress compress
copytruncate 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