yohoweb-containers.yml 551 Bytes
- hosts: yohoweb-containers
  vars:
    logrotate_scripts:
      - name: yohoweb-containers
        paths: 
          - "/Data/logs/nginx/yohobuywap-node/*.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
          - rotate 7
          - missingok
          - notifempty
          - compress
          - copytruncate
  remote_user: root
  roles: 
    - logrotate