pez-infra/ansible/services/sonarr
Rasmus "Pez" Wejlgaard 644b608831
Some checks are pending
Deploy (on merge) / Discover hosts (push) Waiting to run
Deploy (on merge) / deploy (push) Blocked by required conditions
chore: retire readarr service, replaced by bookshelf (#123)
Bookshelf (PR #122) is a Readarr revival and now owns port 8787 on
london-b, so the old custom Readarr systemd unit is removed:

- drop readarr from the media_stack role's unit-deploy and enable loops,
  and add an idempotent decommission task (stop, disable, remove unit)
  so the host tears it down via Ansible rather than ad-hoc SSH
- delete services/readarr/readarr.service
- update docs (services, london-b host, service inventory) to describe
  bookshelf as a Docker service instead of a custom systemd unit

The public readarr.pez.sh hostname is kept and now reverse-proxies to
bookshelf on :8787 — DNS, Caddy and Authelia (pez_readarr_users group)
are unchanged.
2026-06-06 15:50:37 +01:00
..
README.md chore: retire readarr service, replaced by bookshelf (#123) 2026-06-06 15:50:37 +01:00

Sonarr

TV series management and automated downloading.

Deployment

  • Host: london-b
  • Install method: APT package (sonarr v3, mono-based)
  • Service: sonarr.service (package-managed unit file — do not override)
  • Data directory: /var/lib/sonarr
  • Web UI: sonarr.pez.sh (proxied via Caddy on helsinki-a)
  • Managed by: media_stack Ansible role (ensures service is enabled and started)

Notes

Unlike radarr/lidarr/prowlarr (which use manually installed binaries with custom unit files), sonarr is installed via APT and its systemd unit is owned by the package. Use dpkg-reconfigure -plow sonarr to change User/Group/UMask settings rather than editing the unit file directly.

The media_stack role also sets up a midnight cron restart (systemctl restart sonarr).