mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-23 22:45:39 +00:00
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
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-ctl-hlth-journalctlfor downstream monitoring
Usage
- hosts: all
roles:
- role: sys-svc-journalctl