20 lines
547 B
YAML
20 lines
547 B
YAML
# change max size of journalctl logs
|
|
- name: "Set max size"
|
|
become: true
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/systemd/journald.conf
|
|
regexp: 'SystemMaxUse='
|
|
line: "SystemMaxUse={{ journald_system_max_use }}"
|
|
notify:
|
|
- restart service
|
|
|
|
# change max size of journalctl max file size
|
|
- name: "Set max file size"
|
|
become: true
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/systemd/journald.conf
|
|
regexp: 'SystemMaxFileSize='
|
|
line: "SystemMaxFileSize={{ journald_system_max_file_size }}"
|
|
notify:
|
|
- restart service
|