An Ansible role that configures systemd-journald.
Role variables include journald configuration variables as documented in detail
at [freedesktop.org][freedesktop/journald] or man 5 journald.conf
. Each role
variable has the systemd_journald_
prefix, and is named accordingly, e.g.
MaxRetentionSec=
maps to the systemd_journald_maxretensionsec
role
variable.
Note: This role doesn't aim to be 100% complete at all times. When new variables are introduced and you need them feel free to contribute.
---
# requirements.yml
collections:
- name: idiv_biodiversity.systemd
version: X.Y.Z
...
Write a top-level playbook:
---
- name: head server
hosts: head
roles:
- role: idiv_biodiversity.systemd.systemd_journald
tags:
- systemd
- systemd-journald
...
Define the role dependency in meta/main.yml
:
---
dependencies:
- role: idiv_biodiversity.systemd.systemd_journald
tags:
- systemd
- systemd-journald
...