yohobuy-pc-logrotate.yml
465 Bytes
- 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