2019-10-16 17:58:37 +00:00
|
|
|
---
|
2020-05-19 23:11:45 +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
|
|
|
|
|
2020-05-19 23:11:45 +00:00
|
|
|
- name: Lidarr Docker Container
|
2019-10-16 17:58:37 +00:00
|
|
|
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.enable: "{{ lidarr_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.lidarr.rule: "Host(`{{ lidarr_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.lidarr.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.lidarr.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.lidarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.lidarr.loadbalancer.server.port: "8686"
|