diff --git a/templates/systemd-service.j2 b/templates/systemd-service.j2 index a72ad65..9d71050 100644 --- a/templates/systemd-service.j2 +++ b/templates/systemd-service.j2 @@ -13,8 +13,8 @@ Documentation={{ item }} [Service] {% set service_type = item.service_type | default(systemd_default_service_type) %} Type={{ service_type }} -User={{ systemd_user_name }} -Group={{ systemd_group_name }} +User={{ item.systemd_user_name | default(systemd_user_name) }} +Group={{ item.systemd_group_name | default(systemd_group_name) }} {% set _execstarts = item.execstarts %} {% if _execstarts is string %}