[Unit]
Description=Hermes Agent Web Dashboard
After=hermes-agent.service
Wants=hermes-agent.service

[Service]
User={{ hermes_user }}
Group={{ hermes_user }}

Environment=HOME={{ hermes_home }}
Environment=HERMES_HOME={{ hermes_data_dir }}
Environment=PATH={{ hermes_data_dir }}/node/bin:{{ hermes_data_dir }}/hermes-agent/venv/bin:/usr/local/bin:/usr/bin:/bin

ExecStart={{ hermes_home }}/.local/bin/hermes dashboard --no-open --insecure --tui --host {{ ansible_host }} --port {{ hermes_dashboard_port }}

Restart=on-failure
RestartSec=10s

StandardOutput=journal
StandardError=journal
SyslogIdentifier=hermes-dashboard

[Install]
WantedBy=multi-user.target
