ansible-common/tasks/journald.yml

23 lines
606 B
YAML
Raw Permalink Normal View History

# 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