Journalctl¶
This Ansible role manages the configuration of systemd-journald on target hosts.
Description¶
Copies a customized
journald.confto/etc/systemd/journald.confEnsures log retention for one week
Restarts the
systemd-journaldservice when configuration changesSupports live log streaming via
journalctl -f
Overview¶
Template deployment
The role places yourjournald.conf.j2template into/etc/systemd/journald.conf.Service handler
On change, it notifies a handler to restartsystemd-journald.Monitoring
You can follow logs in real time withjournalctl -f.
Features¶
Customizable retention and runtime limits
Seamless restarts on config update
Integration with
sys-ctl-hlth-journalctlfor downstream monitoring
Usage¶
- hosts: all
roles:
- role: sys-svc-journalctl