2019-10-16 17:58:37 +00:00
|
|
|
---
|
2020-01-05 16:35:49 +00:00
|
|
|
- name: Create lidarr Directory
|
2019-10-16 17:58:37 +00:00
|
|
|
file:
|
2020-01-05 16:35:49 +00:00
|
|
|
path: "{{ lidarr_data_directory }}"
|
2019-10-16 17:58:37 +00:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: lidarr
|
|
|
|
docker_container:
|
|
|
|
name: lidarr
|
|
|
|
image: linuxserver/lidarr
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ lidarr_music_directory }}:/music:rw"
|
|
|
|
- "{{ lidarr_downloads_directory }}:/downloads:rw"
|
|
|
|
- "{{ lidarr_data_directory }}:/config:rw"
|
|
|
|
ports:
|
2020-01-05 22:55:05 +00:00
|
|
|
- "{{ lidarr_port }}:8686"
|
2019-10-16 17:58:37 +00:00
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
PUID: "{{ lidarr_user_id }}"
|
|
|
|
PGID: "{{ lidarr_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
|
|
|
labels:
|
|
|
|
traefik.backend: "lidarr"
|
|
|
|
traefik.frontend.rule: "Host:lidarr.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ lidarr_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "8686"
|