Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 23e6ee2fb5 | |||
| 97752ebf58 | |||
| 482e48c26e | |||
| b963045b89 | |||
| 7660244b3e | |||
| 97105c02dd | |||
| 3acb57680d |
25
README.md
25
README.md
@@ -63,6 +63,31 @@ You can also overwrite the location where deluge's configuration is stored (e.g.
|
|||||||
deluge_config_volume: '{{ arrs_configuration_volume }}/deluge'
|
deluge_config_volume: '{{ arrs_configuration_volume }}/deluge'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Radarr
|
||||||
|
|
||||||
|
You can specify the image version and the port exposed:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
radarr_image_version: 'latest'
|
||||||
|
radarr_host_port: 7878
|
||||||
|
```
|
||||||
|
You can also overwrite the location where radarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
||||||
|
|
||||||
|
```yml
|
||||||
|
radarr_config_volume: '{{ arrs_configuration_volume }}/radarr'
|
||||||
|
```
|
||||||
|
|
||||||
|
Radarr needs a place to copy the downloaded series:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
radarr_series_volume: '/mnt/videos/Movies'
|
||||||
|
```
|
||||||
|
|
||||||
|
**Notes**:
|
||||||
|
|
||||||
|
- Depending on your settings, it will also rename your current series
|
||||||
|
- You need write access to that directory, so Sonarr can actually copy the files
|
||||||
|
|
||||||
### Sonarr
|
### Sonarr
|
||||||
|
|
||||||
You can specify the image version and the port exposed:
|
You can specify the image version and the port exposed:
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ arrs_uid:
|
|||||||
arrs_gid:
|
arrs_gid:
|
||||||
|
|
||||||
deluge_enabled: true
|
deluge_enabled: true
|
||||||
|
radarr_enabled: true
|
||||||
sonarr_enabled: true
|
sonarr_enabled: true
|
||||||
lidarr_enabled: true
|
lidarr_enabled: true
|
||||||
jackett_enabled: true
|
jackett_enabled: true
|
||||||
@@ -25,21 +26,37 @@ deluge_admin_port: 8112
|
|||||||
|
|
||||||
deluge_config_volume: '{{ arrs_configuration_volume }}/deluge'
|
deluge_config_volume: '{{ arrs_configuration_volume }}/deluge'
|
||||||
|
|
||||||
|
# Radarr
|
||||||
|
#
|
||||||
|
radarr_image_version: 'latest'
|
||||||
|
radarr_host_port: 7878
|
||||||
|
|
||||||
|
radarr_config_volume: '{{ arrs_configuration_volume }}/radarr'
|
||||||
|
radarr_upload_volume: '/mnt/videos/Movies'
|
||||||
|
radarr_library_volumes:
|
||||||
|
- {path: '/mnt/video/Gold', alias: 'gold' }
|
||||||
|
- {path: '/mnt/video/Current', alias: 'current' }
|
||||||
|
- {path: '/mnt/video/Temporary', alias: 'temporary' }
|
||||||
|
|
||||||
# Sonarr
|
# Sonarr
|
||||||
#
|
#
|
||||||
sonarr_image_version: 'latest'
|
sonarr_image_version: 'latest'
|
||||||
sonarr_host_port: 8989
|
sonarr_host_port: 8989
|
||||||
|
|
||||||
sonarr_config_volume: '{{ arrs_configuration_volume }}/sonarr'
|
sonarr_config_volume: '{{ arrs_configuration_volume }}/sonarr'
|
||||||
sonarr_series_volume: '/mnt/videos/Series'
|
sonarr_upload_volume: '/mnt/videos/Series'
|
||||||
|
sonarr_library_volumes:
|
||||||
|
- {path: '/mnt/tv/Series', alias: 'series' }
|
||||||
|
- {path: '/mnt/tv/Animation', alias: 'animation' }
|
||||||
|
- {path: '/mnt/tv/SciFi', alias: 'scifi' }
|
||||||
|
|
||||||
# Lidarr
|
# Lidarr
|
||||||
lidarr_image_version: 'latest'
|
lidarr_image_version: 'latest'
|
||||||
lidarr_host_port: 8686
|
lidarr_host_port: 8686
|
||||||
|
|
||||||
lidarr_config_volume: '{{ arrs_configuration_volume }}/lidarr'
|
lidarr_config_volume: '{{ arrs_configuration_volume }}/lidarr'
|
||||||
lidarr_music_upload_volume: '/mnt/music/Reference'
|
lidarr_upload_volume: '/mnt/music/Reference'
|
||||||
lidarr_music_volumes:
|
lidarr_library_volumes:
|
||||||
- {path: '/mnt/music/Sonos', alias: 'sonos' }
|
- {path: '/mnt/music/Sonos', alias: 'sonos' }
|
||||||
- {path: '/mnt/music/Audiophile', alias: 'audiophile' }
|
- {path: '/mnt/music/Audiophile', alias: 'audiophile' }
|
||||||
- {path: '/mnt/music/Raw', alias: 'raw' }
|
- {path: '/mnt/music/Raw', alias: 'raw' }
|
||||||
|
|||||||
@@ -7,12 +7,25 @@
|
|||||||
owner: "{{ ansible_effective_user_id }}"
|
owner: "{{ ansible_effective_user_id }}"
|
||||||
group: "{{ ansible_effective_group_id }}"
|
group: "{{ ansible_effective_group_id }}"
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
|
with_items:
|
||||||
|
- "{{ arrs_setup_path }}"
|
||||||
|
tags:
|
||||||
|
- configuration
|
||||||
|
become: true
|
||||||
|
- name: Set up directories
|
||||||
|
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ item }}"
|
||||||
|
owner: "{% if arrs_uid %}{{ arrs_uid }}{% else %}{{ ansible_effective_user_id }}{%endif%}"
|
||||||
|
group: "{% if arrs_gid %}{{ arrs_gid }}{% else %}{{ ansible_effective_group_id }}{%endif%}"
|
||||||
|
mode: "0750"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ deluge_config_volume }}"
|
- "{{ deluge_config_volume }}"
|
||||||
|
- "{{ radarr_config_volume }}"
|
||||||
- "{{ sonarr_config_volume }}"
|
- "{{ sonarr_config_volume }}"
|
||||||
- "{{ lidarr_config_volume }}"
|
- "{{ lidarr_config_volume }}"
|
||||||
- "{{ jackett_config_volume }}"
|
- "{{ jackett_config_volume }}"
|
||||||
- "{{ arrs_setup_path }}"
|
|
||||||
tags:
|
tags:
|
||||||
- configuration
|
- configuration
|
||||||
become: true
|
become: true
|
||||||
@@ -25,6 +38,7 @@
|
|||||||
loop:
|
loop:
|
||||||
- "docker-compose.yml"
|
- "docker-compose.yml"
|
||||||
- "env.deluge.conf"
|
- "env.deluge.conf"
|
||||||
|
- "env.radarr.conf"
|
||||||
- "env.sonarr.conf"
|
- "env.sonarr.conf"
|
||||||
- "env.lidarr.conf"
|
- "env.lidarr.conf"
|
||||||
- "env.jackett.conf"
|
- "env.jackett.conf"
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ version: "3.3"
|
|||||||
services:
|
services:
|
||||||
{% if deluge_enabled %}
|
{% if deluge_enabled %}
|
||||||
deluge:
|
deluge:
|
||||||
image: "linuxserver/deluge:{{ deluge_image_version }}"
|
image: "lscr.io/linuxserver/deluge:{{ deluge_image_version }}"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- {{ arrs_setup_path }}/env.deluge.conf
|
- {{ arrs_setup_path }}/env.deluge.conf
|
||||||
volumes:
|
volumes:
|
||||||
@@ -16,16 +16,37 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- arrs
|
- arrs
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if radarr_enabled %}
|
||||||
|
radarr:
|
||||||
|
image: "lscr.io/linuxserver/radarr:{{ radarr_image_version }}"
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- {{ arrs_setup_path }}/env.radarr.conf
|
||||||
|
volumes:
|
||||||
|
- {{ radarr_config_volume }}:/config
|
||||||
|
- {{ torrent_downloads_volume }}:/downloads
|
||||||
|
- {{ radarr_upload_volume }}:/movies
|
||||||
|
{% for item in radarr_library_volumes %}
|
||||||
|
- {{ item.path }}:/library/{{ item.alias }}
|
||||||
|
{% endfor %}
|
||||||
|
ports:
|
||||||
|
- {{ radarr_host_port }}:7878
|
||||||
|
networks:
|
||||||
|
- arrs
|
||||||
|
{% endif %}
|
||||||
{% if sonarr_enabled %}
|
{% if sonarr_enabled %}
|
||||||
sonarr:
|
sonarr:
|
||||||
image: "lscr.io/linuxserver/sonarr:{{ sonarr_image_version }}"
|
image: "lscr.io/linuxserver/sonarr:{{ sonarr_image_version }}"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- {{ arrs_setup_path }}/env.sonarr.conf
|
- {{ arrs_setup_path }}/env.sonarr.conf
|
||||||
volumes:
|
volumes:
|
||||||
- {{ sonarr_config_volume }}:/config
|
- {{ sonarr_config_volume }}:/config
|
||||||
- {{ sonarr_series_volume }}:/tv
|
|
||||||
- {{ torrent_downloads_volume }}:/downloads
|
- {{ torrent_downloads_volume }}:/downloads
|
||||||
|
- {{ sonarr_upload_volume }}:/tv
|
||||||
|
{% for item in sonarr_library_volumes %}
|
||||||
|
- {{ item.path }}:/library/{{ item.alias }}
|
||||||
|
{% endfor %}
|
||||||
ports:
|
ports:
|
||||||
- {{ sonarr_host_port }}:8989
|
- {{ sonarr_host_port }}:8989
|
||||||
networks:
|
networks:
|
||||||
@@ -34,12 +55,16 @@ services:
|
|||||||
{% if lidarr_enabled %}
|
{% if lidarr_enabled %}
|
||||||
lidarr:
|
lidarr:
|
||||||
image: "lscr.io/linuxserver/lidarr:{{ lidarr_image_version }}"
|
image: "lscr.io/linuxserver/lidarr:{{ lidarr_image_version }}"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- {{ arrs_setup_path }}/env.sonarr.conf
|
- {{ arrs_setup_path }}/env.sonarr.conf
|
||||||
volumes:
|
volumes:
|
||||||
- {{ lidarr_config_volume }}:/config
|
- {{ lidarr_config_volume }}:/config
|
||||||
- {{ torrent_downloads_volume }}:/downloads
|
- {{ torrent_downloads_volume }}:/downloads
|
||||||
|
- {{ lidarr_upload_volume }}:/music
|
||||||
|
{% for item in lidarr_library_volumes %}
|
||||||
|
- {{ item.path }}:/library/{{ item.alias }}
|
||||||
|
{% endfor %}
|
||||||
ports:
|
ports:
|
||||||
- {{ lidarr_host_port }}:8686
|
- {{ lidarr_host_port }}:8686
|
||||||
networks:
|
networks:
|
||||||
@@ -48,15 +73,13 @@ services:
|
|||||||
{% if jackett_enabled %}
|
{% if jackett_enabled %}
|
||||||
jackett:
|
jackett:
|
||||||
image: "lscr.io/linuxserver/jackett:{{ jackett_image_version }}"
|
image: "lscr.io/linuxserver/jackett:{{ jackett_image_version }}"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- {{ arrs_setup_path }}/env.jackett.conf
|
- {{ arrs_setup_path }}/env.jackett.conf
|
||||||
volumes:
|
volumes:
|
||||||
- {{ jackett_config_volume }}:/config
|
- {{ jackett_config_volume }}:/config
|
||||||
- {{ torrent_downloads_volume }}:/downloads
|
- {{ torrent_downloads_volume }}:/downloads
|
||||||
{% for item in lidarr_music_volumes %}
|
|
||||||
- {{ item.path }}:/music/{{ item.alias }}
|
|
||||||
{% endfor %}
|
|
||||||
ports:
|
ports:
|
||||||
- {{ jackett_host_port }}:9117
|
- {{ jackett_host_port }}:9117
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ DELUGE_LOGLEVEL={{ deluge_loglevel }}
|
|||||||
PUID={{ arrs_uid }}
|
PUID={{ arrs_uid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if arrs_gid %}
|
{% if arrs_gid %}
|
||||||
PUID={{ arrs_gid }}
|
PGID={{ arrs_gid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -4,5 +4,5 @@ TZ={{ timezone }}
|
|||||||
PUID={{ arrs_uid }}
|
PUID={{ arrs_uid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if arrs_gid %}
|
{% if arrs_gid %}
|
||||||
PUID={{ arrs_gid }}
|
PGID={{ arrs_gid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -3,5 +3,5 @@ TZ={{ timezone }}
|
|||||||
PUID={{ arrs_uid }}
|
PUID={{ arrs_uid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if arrs_gid %}
|
{% if arrs_gid %}
|
||||||
PUID={{ arrs_gid }}
|
PGID={{ arrs_gid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
8
templates/env.radarr.conf.j2
Normal file
8
templates/env.radarr.conf.j2
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
MONO_EXTERNAL_ENCODINGS=UTF-8
|
||||||
|
TZ={{ timezone }}
|
||||||
|
{% if arrs_uid %}
|
||||||
|
PUID={{ arrs_uid }}
|
||||||
|
{% endif %}
|
||||||
|
{% if arrs_gid %}
|
||||||
|
PGID={{ arrs_gid }}
|
||||||
|
{% endif %}
|
||||||
@@ -4,5 +4,5 @@ TZ={{ timezone }}
|
|||||||
PUID={{ arrs_uid }}
|
PUID={{ arrs_uid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if arrs_gid %}
|
{% if arrs_gid %}
|
||||||
PUID={{ arrs_gid }}
|
PGID={{ arrs_gid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user