Skip to content

Commit c26db02

Browse files
committed
Update logrotate and remove tasks that are no longer needed.
1 parent 2b7dcac commit c26db02

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

playbooks/roles/common/tasks/main.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,17 @@
6060
owner=root group=root mode=644
6161
notify: restart rsyslogd
6262

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+
6368
- name: Install logrotate configuration for edX
6469
template: >
6570
dest=/etc/logrotate.d/hourly/edx-services
6671
src=etc/logrotate.d/hourly/edx_logrotate.j2
6772
owner=root group=root mode=644
6873
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-
7874
- name: Install logrotate configuration for tracking file
7975
template: >
8076
dest=/etc/logrotate.d/hourly/tracking.log
@@ -87,10 +83,6 @@
8783
src=etc/cron.hourly/logrotate
8884
owner=root group=root mode=555
8985
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-
9486
- name: update /etc/hosts
9587
template: src=hosts.j2 dest=/etc/hosts
9688
when: COMMON_HOSTNAME

0 commit comments

Comments
 (0)