An Ansible role that configures systemd-journald.
- Ansible 2+
Role variables include all supported journald parameters as documented in
detail at [freedesktop.org][freedesktop/journald] or man 5 journald.conf
.
Each variable has the systemd_journald_
prefix, and is named for the
parameter. For example, the MaxRetentionSec=
parameter maps to the
systemd_journald_maxretensionsec
role variable. Because every parameter of
journald has an application default value, journald.conf
starts completely
commented out, until you choose to override a parameter default.
None.
Add to requirements.yml
:
---
- src: idiv-biodiversity.systemd_journald
...
Download:
$ ansible-galaxy install -r requirements.yml
Write a top-level playbook:
---
- name: head server
hosts: head
roles:
- role: idiv-biodiversity.systemd_journald
tags:
- systemd
- systemd-journald
...
Define the role dependency in meta/main.yml
:
---
dependencies:
- role: idiv-biodiversity.systemd_journald
tags:
- systemd
- systemd-journald
...
MIT
This role was created in 2020 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).