mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-24 15:05:54 +00:00
Journalctl
This Ansible role manages the configuration of systemd-journald on target hosts.
Description
- Copies a customized
journald.confto/etc/systemd/journald.conf - Ensures log retention for one week
- Restarts the
systemd-journaldservice when configuration changes - Supports 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-hlth-journalctlfor downstream monitoring
Usage
- hosts: all
roles:
- role: sys-svc-journalctl