init-service-configured

Example:

# Enable and start the 'apache2' service.
- init-service-configured:
    name: apache2
    enabled: true
    started: true

Description

Configure an init service.

You can use this to 'enable', 'disable', 'start' and 'stop' a service.

Variables

Name Type Default Description

name

string --

The name of the service. Required

enabled

boolean False

Whether to enable the service or not.

started

boolean False

Whether to start the service or not.

Examples

Example 1

Enable and start the 'apache2' service.

Code
- init-service-configured:
    name: apache2
    enabled: true
    started: true

Command-line

frecklecute init-service-configured --help

Usage: frecklecute init-service-configured [OPTIONS] SERVICE_NAME

  Configure an init service.

  You can use this to 'enable', 'disable', 'start' and 'stop' a service.

Options:
  --enabled / --no-enabled  Whether to enable the service or not.
  --started / --no-started  Whether to start the service or not.
  --help                    Show this message and exit.