feat(ansible): add Jellyfin service and improve deployment

- Add Jellyfin backend to HAProxy configuration on titania.incus
- Simplify deployment by using community.docker.docker_compose_v2 module
- Consolidate handlers and remove redundant Docker commands
- Update Jellyfin systemd service from oneshot to simple type
- Remove PUID/PGID environment variables from docker-compose template
This commit is contained in:
2026-05-04 15:49:18 -04:00
parent f818b7917d
commit e92ab80bbf
4 changed files with 18 additions and 36 deletions

View File

@@ -5,14 +5,13 @@ After=docker.service
Requires=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
Type=simple
WorkingDirectory={{ jellyfin_directory }}
User={{ jellyfin_user }}
ExecStart=/usr/bin/docker compose up -d
ExecStart=/usr/bin/docker compose up --remove-orphans
ExecStop=/usr/bin/docker compose down
Restart=on-failure
RestartSec=30
[Install]
WantedBy=default.target
WantedBy=multi-user.target