alfresco.platform.systemd_service role – Install a systemd service unit

Note

This role is part of the alfresco.platform collection (version 0.1.0-alpha.0).

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 alfresco.platform.

To use it in a playbook, specify: alfresco.platform.systemd_service.

Entry point main – Install a systemd service unit

Synopsis

  • This role installs a systemd service unit and starts it.

Parameters

Parameter

Comments

systemd_service_additional_options

dictionary

Additional options to set for the systemd service unit

Default: {}

systemd_service_enabled

boolean

Whether the systemd service unit should be enabled (started on boot)

Choices:

  • false

  • true ← (default)

systemd_service_environment

dictionary

Environment variables to set for the systemd service unit

Default: {}

systemd_service_exec_start

string / required

Command to start the systemd service unit

systemd_service_exec_stop

string

Command to stop the systemd service unit

Default: "kill -15 $MAINPID"

systemd_service_state

string

Default state of the systemd service unit

Default: "started"

systemd_service_type

string

Type of the systemd service unit

Default: "simple"

systemd_service_unit_after

string

List of systemd targets to start after (space separated)

systemd_service_unit_description

string / required

Description of the systemd service unit

systemd_service_unit_name

string / required

Name of the systemd service unit

systemd_service_user

string / required

User to run the systemd service as

systemd_service_working_directory

string

Working directory for the systemd service unit

Default: "/tmp"