- Jinja 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .woodpecker | ||
| meta | ||
| roles | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .markdownlint-cli2.jsonc | ||
| .sops.yaml | ||
| .yamllint | ||
| AGENTS.md | ||
| ansible.cfg | ||
| playbook.yaml | ||
| readme.md | ||
| renovate.json | ||
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):
dockertraefik
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.