Commit d2d7f65b by e0d

fixing regression

parent 46d9ea6d
...@@ -19,28 +19,23 @@ ...@@ -19,28 +19,23 @@
sudo: True sudo: True
gather_facts: False gather_facts: False
tasks: tasks:
- name: Terminate existing s3 log sync
- name: Terminate existing s3 log sync command: /usr/bin/pkill send-logs-to-s3 || true
command: /usr/bin/pkill send-logs-to-s3 || true - name: "Ensure send-logs-to-s3 script is in the logrotate file"
shell: grep send-logs-to-s3 /etc/logrotate.d/hourly/tracking.log
- name: "Ensure send-logs-to-s3 script is in the logrotate file" # We only force a rotation of edx logs.
shell: grep send-logs-to-s3 /etc/logrotate.d/hourly/tracking.log # Forced rotation of system logfiles will only
# work if there hasn't already been a previous rotation
# We only force a rotation of edx logs. # The logrotate will also call send-logs-to-s3 but hasn't
# Forced rotation of system logfiles will only # been updated for all servers yet.
# work if there hasn't already been a previous rotation - name: Force a log rotation which will call the log sync
# The logrotate will also call send-logs-to-s3 but hasn't command: /usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }}
# been updated for all servers yet. with_items:
- "tracking.log"
- name: Force a log rotation which will call the log sync - "edx-services"
command: /usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }} # This catches the case where tracking.log is 0b
with_items: - name: Sync again
- "tracking.log" command: /edx/bin/send-logs-to-s3 -d "{{ COMMON_LOG_DIR }}/tracking/*" -b "{{ COMMON_AWS_SYNC_BUCKET }}/logs/tracking"
- "edx-services"
# This catches the case where tracking.log is 0b
- name: Sync again
command: /edx/bin/send-logs-to-s3 -d "{{ COMMON_LOG_DIR }}/tracking/*" -b "{{ COMMON_AWS_SYNC_BUCKET }}/logs/tracking"
- name: Run minos verification - name: Run minos verification
hosts: Terminating_Wait hosts: Terminating_Wait
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment