Robert Kaussow
7ccd71b982
All checks were successful
continuous-integration/drone/push Build is passing
18 lines
392 B
Django/Jinja
18 lines
392 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{{ ansible_managed | comment }}
|
|
[Unit]
|
|
Description=Home Assistant
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ homeassistant_user }}
|
|
Group={{ homeassistant_group }}
|
|
ExecStart={{ homeassistant_base_dir }}/venv/bin/hass -c {{ homeassistant_conf_dir }}
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|