Authored by chunhua.zhang

Merge branch 'master' of git.yoho.cn:ops/yoho-ansible-roles

@@ -90,6 +90,7 @@ @@ -90,6 +90,7 @@
90 - yohobuywap-node/nginx_error 90 - yohobuywap-node/nginx_error
91 - yohobuy-node/access_pc_spider.yohobuy.com 91 - yohobuy-node/access_pc_spider.yohobuy.com
92 - yohobuy-node/access_pc.yohobuy.com 92 - yohobuy-node/access_pc.yohobuy.com
  93 + - yohobuy-node/access_shop_manage.yohobuy.com
93 - yohobuy-node/error_pc_spider.yohobuy.com 94 - yohobuy-node/error_pc_spider.yohobuy.com
94 - yohobuy-node/error_pc.yohobuy.com 95 - yohobuy-node/error_pc.yohobuy.com
95 - yohobuy-node/nginx_error 96 - yohobuy-node/nginx_error
  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