arillso.system.systemd_journald role – Manages and configures systemd-journald service.

Note

This role is part of the arillso.system collection (version 0.0.34).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install arillso.system.

To use it in a playbook, specify: arillso.system.systemd_journald.

Entry point main – Manages and configures systemd-journald service.

Synopsis

  • This role provides extensive configuration options for systemd-journald, the system service for collecting and storing log data on Linux systems.

  • It allows fine-tuning of various parameters such as log levels, storage, rate limiting, and log retention to suit different system requirements.

  • This role is designed to be flexible and is suitable for both small-scale deployments and large, complex systems.

Parameters

Parameter

Comments

systemd_journald_compress

boolean

Whether to compress journal data.

Choices:

  • false

  • true ← (default)

systemd_journald_forward_to_console

boolean

Whether to forward journal messages to the system console.

Choices:

  • false ← (default)

  • true

systemd_journald_forward_to_kmsg

boolean

Whether to forward journal messages to the kernel logging buffer (kmsg).

Choices:

  • false ← (default)

  • true

systemd_journald_forward_to_syslog

boolean

Whether to forward journal messages to the system logger (syslog).

Choices:

  • false

  • true ← (default)

systemd_journald_forward_to_wall

boolean

Whether to forward urgent messages to all logged-in users.

Choices:

  • false

  • true ← (default)

systemd_journald_line_max

string

Maximum line length for journal messages.

Default: "48K"

systemd_journald_max_file_sec

string

Duration after which journal files are rotated.

Default: "1month"

systemd_journald_max_level_console

string

Maximum priority level of messages to be forwarded to the console.

Default: "warning"

systemd_journald_max_level_kmsg

string

Maximum priority level of messages to be forwarded to the kernel logging buffer (kmsg).

Default: "notice"

systemd_journald_max_level_store

string

Maximum priority level of messages to be stored in the journal.

Default: "info"

systemd_journald_max_level_syslog

string

Maximum priority level of messages to be forwarded to the system logger (syslog).

Default: "info"

systemd_journald_max_level_wall

string

Maximum priority level of urgent messages to be forwarded to all logged-in users.

Default: "emerg"

systemd_journald_max_retention_sec

string

Maximum retention period for journal entries.

Default: "1month"

systemd_journald_rate_limit_burst

integer

Maximum number of messages recorded within the rate limit interval before limiting occurs.

Default: 1000

systemd_journald_rate_limit_interval

string

Time interval for rate limiting of log messages.

Default: "30s"

systemd_journald_runtime_keep_free

string

Keeps a specified amount of disk space free (empty means default is used).

systemd_journald_runtime_max_file_size

string

Maximum file size for runtime journal files (empty means default is used).

systemd_journald_runtime_max_files

integer

Maximum number of runtime journal files.

Default: 100

systemd_journald_runtime_max_use

string

Maximum disk space to be used for runtime journal files (empty means default is used).

systemd_journald_seal

boolean

Whether to seal journal files.

Choices:

  • false

  • true ← (default)

systemd_journald_service_enabled

boolean

Whether to enable the systemd journald service.

Choices:

  • false

  • true ← (default)

systemd_journald_service_state

string

Desired state of the systemd journald service (started/stopped/restarted/reloaded).

Default: "started"

systemd_journald_split_mode

string

How log messages are split among users (uid/login/none).

Default: "uid"

systemd_journald_storage

string

Defines where journal data is stored (persistent/volatile/auto/none).

Default: "auto"

systemd_journald_sync_interval_sec

string

Interval to synchronize journal data to disk.

Default: "5m"

systemd_journald_system_keep_free

string

Amount of disk space to keep free for system journal files.

Default: "500M"

systemd_journald_system_max_file_size

string

Maximum file size for system journal files.

Default: "10M"

systemd_journald_system_max_files

integer

Maximum number of system journal files.

Default: 100

systemd_journald_system_max_use

string

Maximum disk space to be used for system journal files.

Default: "1G"