ansible-common/tasks/journald.yml
Frank Villaro-Dixon f2f505cfc8 add more shit
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-10-04 20:37:55 +02:00

23 lines
No EOL
606 B
YAML

# Make the systemd journal volatile (i.e. don't store it to disk)
# only do that on raspberry Pis
- name: Set systemd journal to volatile
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: Storage
value: volatile
notify: restart systemd-journald
when: ansible_architecture == 'armv7l' and vars.journal_volatile
- name: Set systemd journal max usage
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: RuntimeMaxUse
value: 100M
notify: restart systemd-journald
when: ansible_architecture == 'armv7l' and vars.journal_volatile