Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
camino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
pnm-public
camino
Commits
35c15115
Unverified
Commit
35c15115
authored
1 year ago
by
BITARD Michaël
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
chore(infra): limite la taille du journal à 1G (#1205)
parent
ba1af83b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
infra/roles/init/tasks/main.yml
+17
-2
17 additions, 2 deletions
infra/roles/init/tasks/main.yml
with
17 additions
and
2 deletions
infra/roles/init/tasks/main.yml
+
17
−
2
View file @
35c15115
...
...
@@ -26,7 +26,7 @@
block
:
-
name
:
Install tools for apt
ansible.builtin.apt
:
name
:
name
:
-
ca-certificates
-
curl
-
gnupg
...
...
@@ -75,4 +75,19 @@
mode
:
u=rwx,g=rx,o=r
owner
:
camino
group
:
users
become
:
True
\ No newline at end of file
become
:
True
-
name
:
journalctl
block
:
-
name
:
Limite la taille maximum des fichiers de logs à 1GB
ansible.builtin.lineinfile
:
path
:
/etc/systemd/journald.conf
regexp
:
'
^SystemMaxUse='
line
:
SystemMaxUse=1G
become
:
True
register
:
limit_journal_size
-
name
:
Redémarre systemd-journald
ansible.builtin.systemd_service
:
state
:
restarted
name
:
systemd-journald
when
:
limit_journal_size.changed
become
:
True
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