Authored by chunhua.zhang

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

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