mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 03:53:06 +00:00
30 lines
No EOL
803 B
YAML
30 lines
No EOL
803 B
YAML
---
|
|
- 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:
|
|
- "{{ bazarr_port }}:6767"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PUID: "{{ bazarr_user_id }}"
|
|
PGID: "{{ bazarr_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "bazarr"
|
|
traefik.frontend.rule: "Host:bazarr.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ bazarr_available_externally }}"
|
|
traefik.port: "6767" |