Authored by root

统一同步日志路径

- 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
- hosts: yohobuy-pc
- hosts: yohoweb-containers
vars:
logrotate_scripts:
- name: yohobuy-pc
- name: yohoweb-containers
paths:
- "/Data/logs/nginx/yohobuywap-node/*.log"
- "/Data/logs/yohobuy-node/error/error.log"
- "/Data/logs/yohobuy-node/info/info.log"
- "/Data/logs/nginx/yohobuy-node/*.log"
- "/Data/logs/nginx/yoho-activity-platform-admin/*.log"
- "/Data/logs/nginx/yoho-activity-platform/*.log"
options:
- daily
- size 50M
... ...