Commit b84de743 authored by Erick Hitter's avatar Erick Hitter

Don't set logrotate if there's no log to rotate

parent fd770c99
Pipeline #196 passed with stage
in 3 minutes and 16 seconds
......@@ -32,3 +32,10 @@
owner: root
group: root
mode: 0644
when: glrdomon_log_dest != "os.Stdout"
- name: Remove logrotate configuration
file:
dest: /etc/logrotate.d/gitlab-runner-do-monitor
state: absent
when: glrdomon_log_dest == "os.Stdout"
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