Skip to content

Commit 6806806

Browse files
committed
Move to hourly instead of daily logrotation.
1 parent f998323 commit 6806806

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

playbooks/roles/common/tasks/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@
6262

6363
- name: Install logrotate configuration for edX
6464
template: >
65-
dest=/etc/logrotate.d/edx-services
66-
src=etc/logrotate.d/edx_logrotate.j2
65+
dest=/etc/logrotate.d/hourly/edx-services
66+
src=etc/logrotate.d/hourly/edx_logrotate.j2
6767
owner=root group=root mode=644
6868
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+
6973
# This is in common to keep all logrotation config
7074
# in the same role
7175
- name: Create hourly subdirectory in logrotate.d

0 commit comments

Comments
 (0)