yohoweb-containers.yml
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# logrotate config for containers
# How to run:
# ansible-playbook -i inventories/containers/hosts playbooks/yohoweb-containers.yml
- hosts: web-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"
- "/Data/logs/yoho-seo/*.log"
- "/Data/logs/yoho-doom-spider/*.log"
- "/Data/logs/java-yohobuy-global/nginx/*.log"
options:
- daily
- size 50M
- rotate 7
- missingok
- notifempty
- compress
- copytruncate
remote_user: root
roles:
- logrotate
- hosts: yoho-java-container
vars:
logrotate_scripts:
- name: yoho-java-container
paths:
- "/Data/logs/yoho-canal/canal/*.log"
options:
- daily
- size 50M
- rotate 7
- missingok
- notifempty
- compress
- copytruncate
remote_user: root
roles:
- logrotate