Journalctl¶
This Ansible role manages the configuration of systemd-journald
on target hosts.
Description¶
Copies a customized
journald.conf
to/etc/systemd/journald.conf
Ensures log retention for one week
Restarts the
systemd-journald
service when configuration changesSupports live log streaming via
journalctl -f
Overview¶
Template deployment
The role places yourjournald.conf.j2
template 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-hlth-journalctl
for downstream monitoring
Usage¶
- hosts: all
roles:
- role: sys-svc-journalctl