Files
Ansible-Build/roles/systemd
2024-10-25 16:06:19 +02:00
..
2021-11-22 08:24:07 +01:00
2024-10-25 16:06:19 +02:00

systemd role

Setup systemd service.

Usage

Configure the role.

systemd_units:
  - name: frappebench
    description: Frappe Bench Webserver
    after: syslog.target # default: undefined
    syslog_identifier: frappebench # default: undefined
    restart: on-failure # default: "always"
    standard_output: syslog # default: undefined
    exec_start: docker exec -w /workspace/frappe-bench frappe-bench bench start
    wanted_by: multi-user.target # default: multi-user.target

And include it in your playbook.

- hosts: systemd
  roles:
  - role: systemd