Commit c26db02 1 parent 2b7dcac commit c26db02 Copy full SHA for c26db02
File tree 1 file changed +5
-13
lines changed
playbooks/roles/common/tasks
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 60
60
owner=root group=root mode=644
61
61
notify : restart rsyslogd
62
62
63
+ # This is in common to keep all logrotation config
64
+ # in the same role
65
+ - name : Create hourly subdirectory in logrotate.d
66
+ file : path=/etc/logrotate.d/hourly state=directory
67
+
63
68
- name : Install logrotate configuration for edX
64
69
template : >
65
70
dest=/etc/logrotate.d/hourly/edx-services
66
71
src=etc/logrotate.d/hourly/edx_logrotate.j2
67
72
owner=root group=root mode=644
68
73
69
- # This can be removed after new release of edX
70
- - name : Remove old edx-services config from /etc/logrotate.d
71
- file : path=/etc/logrotate.d/edx-services state=absent
72
-
73
- # This is in common to keep all logrotation config
74
- # in the same role
75
- - name : Create hourly subdirectory in logrotate.d
76
- file : path=/etc/logrotate.d/hourly state=directory
77
-
78
74
- name : Install logrotate configuration for tracking file
79
75
template : >
80
76
dest=/etc/logrotate.d/hourly/tracking.log
87
83
src=etc/cron.hourly/logrotate
88
84
owner=root group=root mode=555
89
85
90
- # This can be removed after new release of edX
91
- - name : Remove old tracking.log config from /etc/logrotate.d
92
- file : path=/etc/logrotate.d/tracking.log state=absent
93
-
94
86
- name : update /etc/hosts
95
87
template : src=hosts.j2 dest=/etc/hosts
96
88
when : COMMON_HOSTNAME
You can’t perform that action at this time.
0 commit comments