1
0
forked from infra/ansible

netbox: service templates should use user/group from vars

This commit is contained in:
Markus 2021-11-08 17:29:00 +01:00
parent c7e01371c9
commit f470dd313a
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ Wants=network-online.target
[Service]
Type=simple
User=netbox
Group=netbox
User={{ netbox_user }}
Group={{ netbox_group }}
WorkingDirectory=/opt/netbox-{{ netbox_version }}
ExecStart=/opt/netbox-{{ netbox_version }}/venv/bin/python3 /opt/netbox-{{ netbox_version }}/netbox/manage.py rqworker

View File

@ -7,8 +7,8 @@ Wants=network-online.target
[Service]
Type=simple
User=netbox
Group=netbox
User={{ netbox_user }}
Group={{ netbox_group }}
PIDFile=/var/tmp/netbox.pid
WorkingDirectory=/opt/netbox-{{ netbox_version }}