Ansible role for installing Bazarr
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Cornet 9402622f8a
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
docs: update readme image version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 17:32:01 +02:00
.woodpecker chore(package): update cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2 docker tag to v0.23.3 2026-09-20 05:46:50 +00:00
meta feat: move deps to playbook 2026-05-08 15:44:26 +02:00
roles fix: add missing role deps 2026-05-18 10:24:50 +02:00
tasks chore(package): update cr.simoncor.net/lscr/linuxserver/bazarr docker tag to v1.6.2 2026-09-26 08:30:17 +00:00
templates feat: initial commit 2025-10-22 15:10:46 +02:00
.ansible-lint fix: exclude only sops yml files from lint 2026-07-14 16:23:35 +02:00
.editorconfig chore: add .editorconfig and .gitattributes 2026-05-27 14:23:39 +02:00
.gitattributes chore: add .editorconfig and .gitattributes 2026-05-27 14:23:39 +02:00
.gitignore feat: initial commit 2025-10-22 15:10:46 +02:00
.markdownlint-cli2.jsonc ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
.sops.yaml fix: correct sops regex to ya?ml 2026-07-14 16:01:42 +02:00
.yamllint chore: exclude .yml files from lint configs 2026-07-14 16:17:18 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:06:22 +01:00
ansible.cfg chore: sync linting and config files from common 2026-07-14 11:33:15 +02:00
playbook.yaml chore(playbook): run galaxy install only on first host 2026-08-13 08:49:03 +02:00
readme.md docs: update readme image version 2026-10-05 17:32:01 +02:00
renovate.json feat: initial commit 2025-10-22 15:10:46 +02:00

Ansible Role: Bazarr

Install and configure Bazarr - a companion application to Sonarr and Radarr for subtitle management. The role runs Bazarr as a Docker container with host networking and mounts the shared media volume over NFS. Unused Docker resources are pruned afterwards.

Requirements

A Debian host with Docker (installed by the docker role). The bazarr user and the blackbeard group must exist, they are created by the blackbeard role.

Dependencies

The playbook runs these roles first (see roles/requirements.yml):

  • docker
  • traefik

Variables

The role has no defaults/main.yaml. It uses the following variables, which must be defined elsewhere.

Variable Required Default Description
bazarr_puid Yes UID of the bazarr user, passed to the container as PUID
blackbeard_guid Yes GID of the blackbeard group, passed to the container as GUID
timezone Yes Timezone (TZ) for the container

The image tag (1.6.2), the NFS server address and the paths are hardcoded in tasks/bazarr.yaml.

Example

bazarr_puid: "10700"
blackbeard_guid: "10000"
timezone: "Europe/Amsterdam"

Usage

Run the role through Semaphore using playbook.yaml. The playbook first runs ansible-galaxy install -f -r roles/requirements.yml to refresh the role dependencies, then runs the docker, traefik and bazarr roles.

Notes

Item Value
Container bazarr (restart policy unless-stopped, network_mode: host)
Image cr.simoncor.net/lscr/linuxserver/bazarr:1.6.2
Port 6767/tcp
Config /mnt/bazarr/data (owner bazarr, group blackbeard, mode 0775)
Media volume Docker volume media (NFSv4.2 :/srv/nfs/media), mounted /mnt/media

The cleanup tasks run docker_prune and docker system prune --all --force --volumes after every run. This removes all unused images, networks and volumes on the host, including those of other containers.