We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f998323 commit 6806806Copy full SHA for 6806806
playbooks/roles/common/tasks/main.yml
@@ -62,10 +62,14 @@
62
63
- name: Install logrotate configuration for edX
64
template: >
65
- dest=/etc/logrotate.d/edx-services
66
- src=etc/logrotate.d/edx_logrotate.j2
+ dest=/etc/logrotate.d/hourly/edx-services
+ src=etc/logrotate.d/hourly/edx_logrotate.j2
67
owner=root group=root mode=644
68
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
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate.j2 playbooks/roles/common/templates/etc/logrotate.d/hourly/edx_logrotate.j2
0 commit comments