2019-09-25 19:07:13 +00:00
|
|
|
---
|
|
|
|
- name: Create Bazarr Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ bazarr_data_directory }}"
|
|
|
|
|
|
|
|
- name: Bazarr
|
|
|
|
docker_container:
|
|
|
|
name: bazarr
|
|
|
|
image: linuxserver/bazarr
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ bazarr_tv_directory }}:/tv:rw"
|
|
|
|
- "{{ bazarr_movies_directory }}:/movies:rw"
|
|
|
|
- "{{ bazarr_data_directory }}:/config:rw"
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ bazarr_port }}:6767"
|
2019-09-25 19:07:13 +00:00
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
PUID: "{{ bazarr_user_id }}"
|
|
|
|
PGID: "{{ bazarr_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2021-02-23 15:16:29 +00:00
|
|
|
memory: "{{ bazarr_memory }}"
|
2019-09-25 19:07:13 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ bazarr_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.bazarr.rule: "Host(`{{ bazarr_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.bazarr.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.bazarr.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.bazarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.bazarr.loadbalancer.server.port: "6767"
|