Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner-do-monitor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
gitlab-runner-do-monitor
Commits
0ce5f063
Commit
0ce5f063
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Add logrotate config
parent
8719fb98
No related branches found
No related tags found
1 merge request
!2
Initial release
Pipeline
#182
passed with stage
in 2 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+11
-2
11 additions, 2 deletions
tasks/main.yml
templates/logrotate.j2
+7
-0
7 additions, 0 deletions
templates/logrotate.j2
with
18 additions
and
2 deletions
tasks/main.yml
+
11
−
2
View file @
0ce5f063
...
...
@@ -6,7 +6,7 @@
mode
:
0755
force
:
yes
-
name
:
Create
config
file
-
name
:
Set
config
uration
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
This diff is collapsed.
Click to expand it.
templates/logrotate.j2
0 → 100644
+
7
−
0
View file @
0ce5f063
{{ glrdomon_log_dest }} {
daily
rotate 14
notifempty
missingok
compress
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment