21 lines
517 B
Django/Jinja
21 lines
517 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
# {{ ansible_managed }}
|
|
[Unit]
|
|
Description=Jellyfin Media Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment=JELLYFIN_DATA_PATH={{ jellyfin_data_dir }}
|
|
Environment=JELLYFIN_CONFIG_DIR={{ jellyfin_config_dir }}
|
|
Environment=JELLYFIN_LOG_DIR={{ jellyfin_log_dir }}
|
|
Restart=on-failure
|
|
TimeoutSec=15
|
|
User={{ jellyfin_user }}
|
|
Group={{ jellyfin_group }}
|
|
WorkingDirectory={{ jellyfin_base_dir }}
|
|
ExecStart={{ jellyfin_base_dir }}/jellyfin-latest
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|