arillso.system.systemd role – Systemd management with multi-entry-point support

Note

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

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.

Entry point journald – Journald configuration entry point

Synopsis

  • Entry point for configuring systemd-journald

  • Manage journal storage, retention and forwarding

Parameters

Parameter

Comments

systemd_journald_max_retention_sec

string

Maximum retention time

Default: "1month"

systemd_journald_storage

string

Journal storage mode

Default: "auto"

systemd_journald_system_max_use

string

Maximum disk space

Default: "1G"

Entry point main – Systemd management with multi-entry-point support

Synopsis

  • Manages systemd services, unit files and journald configuration

  • Supports granular control via entry points

Parameters

Parameter

Comments

systemd_journald_compress

boolean

Compress journal data

Choices:

  • false

  • true ← (default)

systemd_journald_enabled

boolean

Enable journald configuration entry point

Choices:

  • false

  • true ← (default)

systemd_journald_forward_to_syslog

boolean

Forward journal to syslog

Choices:

  • false

  • true ← (default)

systemd_journald_max_retention_sec

string

Maximum retention time for journal entries

Default: "1month"

systemd_journald_storage

string

Journal storage mode

Choices:

  • "auto" ← (default)

  • "volatile"

  • "persistent"

  • "none"

systemd_journald_system_max_use

string

Maximum disk space for system journal

Default: "1G"

systemd_service_enabled

boolean

Enable service management entry point

Choices:

  • false

  • true ← (default)

systemd_services

list / elements=dictionary

List of systemd services to manage

Default: []

daemon_reload

boolean

Reload systemd daemon

Choices:

  • false

  • true

enabled

boolean

Enable service on boot

Choices:

  • false

  • true

masked

boolean

Mask service

Choices:

  • false

  • true

name

string / required

Service name

state

string

Service state

Choices:

  • "started"

  • "stopped"

  • "restarted"

  • "reloaded"

systemd_unit_enabled

boolean

Enable unit file management entry point

Choices:

  • false

  • true ← (default)

systemd_units

list / elements=dictionary

List of systemd unit files to manage

Default: []

content

string

Unit file content (raw text)

name

string / required

Unit file name

state

string

Unit state

Choices:

  • "present" ← (default)

  • "absent"

unit

dictionary

Unit file content (structured dict)

Entry point service – Service management entry point

Synopsis

  • Entry point for managing systemd services

  • Control service state and boot configuration

Parameters

Parameter

Comments

systemd_services

list / elements=dictionary / required

List of services to manage

Entry point unit – Unit file management entry point

Synopsis

  • Entry point for managing systemd unit files

  • Deploy and remove unit files

Parameters

Parameter

Comments

systemd_units

list / elements=dictionary / required

List of unit files to manage