kfiresmith / ansible-role-systemd-journald

Ansible role that configures systemd-journald

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: systemd-journald

An Ansible role that configures systemd-journald.

Table of Contents

Requirements

  • Ansible 2+

Role Variables

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.

Dependencies

None.

Example Playbook

Add to requirements.yml:

---

- src: idiv-biodiversity.systemd_journald

...

Download:

$ ansible-galaxy install -r requirements.yml

Top-Level Playbook

Write a top-level playbook:

---

- name: head server
  hosts: head

  roles:
    - role: idiv-biodiversity.systemd_journald
      tags:
        - systemd
        - systemd-journald

...

Role Dependency

Define the role dependency in meta/main.yml:

---

dependencies:

  - role: idiv-biodiversity.systemd_journald
    tags:
      - systemd
      - systemd-journald

...

License

MIT

Author Information

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).

freedesktop/journald

About

Ansible role that configures systemd-journald

License:MIT License


Languages

Language:Jinja 100.0%