Authored by chunhua.zhang

Merge branch 'docker_logrotate' into 'master'

Logrotate on wap,pc node

copytruncate方式轮询日志

See merge request !50
  1 +- hosts: yohobuy-pc
  2 + vars:
  3 + logrotate_scripts:
  4 + - name: yohobuy-pc
  5 + paths:
  6 + - "/Data/logs/nginx/yohobuywap-node/*.log"
  7 + - "/Data/logs/yohobuy-node/error/error.log"
  8 + - "/Data/logs/yohobuy-node/info/info.log"
  9 + options:
  10 + - daily
  11 + - size 50M
  12 + - rotate 7
  13 + - missingok
  14 + - notifempty
  15 + - compress
  16 + - copytruncate
  17 + remote_user: root
  18 + roles:
  19 + - logrotate
  1 +- hosts: yohobuy-wap
  2 + vars:
  3 + logrotate_scripts:
  4 + - name: yohobuy-wap
  5 + paths:
  6 + - "/Data/logs/nginx/yohobuywap-node/*.log"
  7 + - "/Data/logs/yohobuywap-node/error/error.log"
  8 + - "/Data/logs/yohobuywap-node/info/info.log"
  9 + options:
  10 + - daily
  11 + - size 50M
  12 + - rotate 7
  13 + - missingok
  14 + - notifempty
  15 + - compress
  16 + - copytruncate
  17 + remote_user: root
  18 + roles:
  19 + - logrotate