Commit 0ce5f063 authored by Erick Hitter's avatar Erick Hitter

Add logrotate config

parent 8719fb98
Pipeline #182 passed with stage
in 2 minutes and 48 seconds
......@@ -6,7 +6,7 @@
mode: 0755
force: yes
- name: Create config file
- name: Set configuration
template:
src: templates/config.j2
dest: "{{ glrdomon_config_dest }}"
......@@ -15,7 +15,7 @@
group: root
mode: 0400
- name:
- name: Schedule cron job
cron:
name: gitlab-runner-do-monitor
minute: "{{ gldrmon_cron_interval_min }}"
......@@ -23,3 +23,12 @@
state: present
cron_file: gitlab-runner-do-monitor
user: root
- name: Configure logrotate
template:
src: templates/logrotate.j2
dest: /etc/logrotate.d/gitlab-runner-do-monitor
force: yes
owner: root
group: root
mode: 0644
{{ glrdomon_log_dest }} {
daily
rotate 14
notifempty
missingok
compress
}
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