tinyblargon.systemd

Ansible Role: systemd

This role helps you set up a systemd service or timer using a local file.

Requirements

None

Role Variables

Default Values

Variable Name Required Description Default Value Type
systemd_file no Path to the local service/timer file "" string
systemd_name yes Name of the new systemd service/timer "" string
systemd_enable no Whether to enable or disable the service/timer true bool
systemd_state no Current state of the service/timer: can be started, stopped, restarted, absent. If absent, the service/timer will be stopped, disabled, and removed. "started" string
systemd_type no Specify if it should be a service or timer "service" string

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: tinyblargon.systemd
      vars:
        systemd_file: "path/to/test.service"
        systemd_name: "testing-service"
        systemd_enable: false
        systemd_state: "started"
        systemd_type: "service"

License

MIT

Informazioni sul progetto

Create and configure systemd services and timers

Installa
ansible-galaxy install tinyblargon.systemd
Licenza
mit
Download
170
Proprietario
If the DevOps tooling doesn't exist, I'll write it myself.