mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-10 12:27:15 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
32
roles/core-journalctl/README.md
Normal file
32
roles/core-journalctl/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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 changes
|
||||
- Supports live log streaming via `journalctl -f`
|
||||
|
||||
## Overview
|
||||
|
||||
1. **Template deployment**
|
||||
The role places your `journald.conf.j2` template into `/etc/systemd/journald.conf`.
|
||||
2. **Service handler**
|
||||
On change, it notifies a handler to restart `systemd-journald`.
|
||||
3. **Monitoring**
|
||||
You can follow logs in real time with `journalctl -f`.
|
||||
|
||||
## Features
|
||||
|
||||
- Customizable retention and runtime limits
|
||||
- Seamless restarts on config update
|
||||
- Integration with `monitor-bot-journalctl` for downstream monitoring
|
||||
|
||||
## Usage
|
||||
|
||||
```yaml
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: core-journalctl
|
Reference in New Issue
Block a user