mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-16 08:48:04 +00:00
28 lines
No EOL
780 B
YAML
28 lines
No EOL
780 B
YAML
---
|
|
- name: Create lidarr Directory
|
|
file:
|
|
path: "{{ lidarr_data_directory }}"
|
|
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:
|
|
- "{{ lidarr_port }}:8686"
|
|
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 }}"
|
|
traefik.port: "8686" |