Authored by chunhua.zhang

Merge branch 'docker_logrotate' into 'master'

Logrotate on wap,pc node

copytruncate方式轮询日志

See merge request !50
- hosts: yohobuy-pc
vars:
logrotate_scripts:
- name: yohobuy-pc
paths:
- "/Data/logs/nginx/yohobuywap-node/*.log"
- "/Data/logs/yohobuy-node/error/error.log"
- "/Data/logs/yohobuy-node/info/info.log"
options:
- daily
- size 50M
- rotate 7
- missingok
- notifempty
- compress
- copytruncate
remote_user: root
roles:
- logrotate
... ...
- hosts: yohobuy-wap
vars:
logrotate_scripts:
- name: yohobuy-wap
paths:
- "/Data/logs/nginx/yohobuywap-node/*.log"
- "/Data/logs/yohobuywap-node/error/error.log"
- "/Data/logs/yohobuywap-node/info/info.log"
options:
- daily
- size 50M
- rotate 7
- missingok
- notifempty
- compress
- copytruncate
remote_user: root
roles:
- logrotate
... ...