tinyblargon.systemd

Rol de Ansible: systemd

Rol para configurar un servicio/timer de systemd desde un archivo local.

Requisitos

N/A

Variables del Rol

Predeterminados

Nombre de la Variable Requerido Descripción Valor Predeterminado Tipo
systemd_file no Ruta del archivo local de servicio/timer a copiar "" cadena
systemd_name Nombre del servicio/timer de systemd creado "" cadena
systemd_enable no Si el servicio/timer debe ser habilitado o deshabilitado true booleano
systemd_state no Estado del servicio/timer de systemd, puede ser started, stopped, restarted, absent. Cuando es absent, el servicio/timer será detenido, deshabilitado y eliminado. "started" cadena
systemd_type no Si systemd debe crearlo como service o timer "service" cadena

Dependencias

N/A

Ejemplo de Playbook

- hosts: all
  roles:
    - role: tinyblargon.systemd
      vars:
        systemd_file: "ruta/a/test.service"
        systemd_name: "servicio-de-prueba"
        systemd_enable: false
        systemd_state: "started"
        systemd_type: "service"

Licencia

MIT

Acerca del proyecto

Create and configure systemd services and timers

Instalar
ansible-galaxy install tinyblargon.systemd
Licencia
mit
Descargas
170
Propietario
If the DevOps tooling doesn't exist, I'll write it myself.