This role configures systemd-journald. The configuration options can be obtained from journald.conf(5).
You can ask this role to wipe the persistent journal directory at /var/log/journal
.
Note that this changes journald's behaviour if the storage was set to auto
.
systemd with journald compiled in
Name | Default/Required | Description |
---|---|---|
journald_config |
{} |
Dict of configuration items for systemd-journald |
journald_wipe_persistent |
false |
Wipe the persistent journal directory |
None
- hosts: all
roles:
- systemd-journald
journald_config:
Storage: volatile
RuntimeMaxUse: 1G
ForwardToConsole: "yes"
TTYPath: /dev/tty12
journald_wipe_persistent: true
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.