2018-04-10 21:57:28 +00:00
|
|
|
---
|
|
|
|
- name: Create Radarr Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ radarr_data_directory }}"
|
|
|
|
|
|
|
|
- name: Radarr
|
|
|
|
docker_container:
|
|
|
|
name: radarr
|
|
|
|
image: linuxserver/radarr
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ radarr_movies_directory }}:/movies:rw"
|
2020-03-23 23:01:37 +00:00
|
|
|
- "{{ radarr_download_directory }}:/downloads:rw"
|
2018-04-10 21:57:28 +00:00
|
|
|
- "{{ radarr_data_directory }}:/config:rw"
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ radarr_port }}:7878"
|
2018-04-10 21:57:28 +00:00
|
|
|
env:
|
2018-11-12 22:30:13 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2018-04-10 21:57:28 +00:00
|
|
|
PUID: "{{ radarr_user_id }}"
|
|
|
|
PGID: "{{ radarr_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2021-08-11 19:06:09 +00:00
|
|
|
memory: "{{ radarr_memory }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ radarr_available_externally }}"
|
2021-01-19 17:18:12 +00:00
|
|
|
traefik.http.routers.radarr.rule: "Host(`{{ radarr_hostname }}.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.radarr.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.radarr.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.radarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.radarr.loadbalancer.server.port: "7878"
|