Skip to content
Snippets Groups Projects
Unverified Commit 35c15115 authored by BITARD Michaël's avatar BITARD Michaël Committed by GitHub
Browse files

chore(infra): limite la taille du journal à 1G (#1205)

parent ba1af83b
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment