From 61d47e32b35c9c14c4dd4b191e8801eb9364e960 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:29:29 -0700 Subject: [PATCH 01/15] readarr add --- nas.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nas.yml b/nas.yml index 3e9cf2d752..c58b73ac62 100644 --- a/nas.yml +++ b/nas.yml @@ -300,6 +300,11 @@ - radarr when: (radarr_enabled | default(False)) + - role: readarr + tags: + - readarr + when: (readarr_enabled | default(False)) + - role: sabnzbd tags: - sabnzbd From 0698d7fd90dd4b342353c454d3b17c2611de78bb Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:30:28 -0700 Subject: [PATCH 02/15] readarr add --- roles/readarr/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/readarr/defaults/main.yml diff --git a/roles/readarr/defaults/main.yml b/roles/readarr/defaults/main.yml new file mode 100644 index 0000000000..8e126c40fb --- /dev/null +++ b/roles/readarr/defaults/main.yml @@ -0,0 +1,18 @@ +--- +# enable or disable the application +readarr_enabled: false +readarr_available_externally: false + +# directories +readarr_data_directory: "{{ docker_home }}/readarr" +readarr_download_directory: "{{ downloads_root }}" + +# uid / gid +readarr_user_id: "998" +readarr_group_id: "1001" +# network +readarr_hostname: "readarr" +readarr_port: "8787" + +# specs +readarr_memory: "1g" From a8d8e8bf9db963abdf292974a2bd884c8dc8fdba Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:31:46 -0700 Subject: [PATCH 03/15] readarr add --- roles/readarr/tasks/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 roles/readarr/tasks/main.yml diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml new file mode 100644 index 0000000000..b49348c0b3 --- /dev/null +++ b/roles/readarr/tasks/main.yml @@ -0,0 +1,32 @@ +- name: Create Readarr Directories + file: + path: "{{ item }}" + state: directory + with_items: + - "{{ readarr_data_directory }}" + - "{{ readarr_data_directory }}/config" + +- name: Readarr Docker Container + docker_container: + name: readarr + image: linuxserver/readarr:nightly + pull: true + volumes: + - "{{ readarr_data_directory }}/config:/config" + - "{{ books_root }}:/books" + - "{{ readarr_download_directory }}:/downloads:rw" + env: + TZ: "{{ ansible_nas_timezone }}" + PUID: "{{ readarr_user_id }}" + PGID: "{{ readarr_group_id }}" + ports: + - "{{ readarr_port }}:8787" + restart_policy: unless-stopped + labels: + traefik.enable: "{{ readarr_available_externally | string }}" + traefik.http.routers.readarr.rule: "Host(`{{ readarr_hostname }}.{{ ansible_nas_domain }}`)" + traefik.http.routers.readarr.tls.certresolver: "letsencrypt" + traefik.http.routers.readarr.tls.domains[0].main: "{{ ansible_nas_domain }}" + traefik.http.routers.readarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" + traefik.http.services.readarr.loadbalancer.server.port: "8787" + memory: "{{readarr_memory}}" From 36f9aab1c2c84213d7365e2609470320c3e7b32c Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:32:18 -0700 Subject: [PATCH 04/15] Update main.yml --- roles/readarr/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index b49348c0b3..e7c5d54141 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -6,7 +6,7 @@ - "{{ readarr_data_directory }}" - "{{ readarr_data_directory }}/config" -- name: Readarr Docker Container +- name: Create Readarr Docker Container docker_container: name: readarr image: linuxserver/readarr:nightly From bbf728aaffbe1a7c082247803201884f0abd523a Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:34:47 -0700 Subject: [PATCH 05/15] readarr add --- docs/configuration/application_ports.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configuration/application_ports.md b/docs/configuration/application_ports.md index 042b60509a..bd182c101e 100644 --- a/docs/configuration/application_ports.md +++ b/docs/configuration/application_ports.md @@ -79,6 +79,7 @@ By default, applications can be found on the ports listed below. | PyTivo | 9032 | Bridge | HTTP | | PyTivo | 2190 | Bridge | UDP | | Radarr | 7878 | Bridge | HTTP | +| Readarr | 8787 | Bridge | HTTP | | RSS-Bridge | 8091 | Bridge | HTTP | | Sabnzbd | 18080 | Bridge | HTTP | | Sickchill | 8081 | Bridge | HTTP | From 41edb0afb721c9552a19e2734438e2176c7a42d2 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:36:54 -0700 Subject: [PATCH 06/15] readarr add --- docs/applications/readarr.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/applications/readarr.md diff --git a/docs/applications/readarr.md b/docs/applications/readarr.md new file mode 100644 index 0000000000..46dc0a868d --- /dev/null +++ b/docs/applications/readarr.md @@ -0,0 +1,10 @@ +# Readarr + +Homepage: +Readarr is a ebook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will interface with clients and indexers to grab, sort, and rename them. + +## Usage + +Set `readarr_enabled: true` in your `inventories//nas.yml` file. + +The Readarr web interface can be found at . From 2f49bd12a7483647d15d6b0a2f9d174821edab9e Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 15:39:02 -0700 Subject: [PATCH 07/15] readarr add --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ae91ded621..2cab8b2901 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ If you have a spare domain name you can configure applications to be accessible * [pyLoad](https://pyload.net/) - A download manager with a friendly web-interface * [PyTivo](http://pytivo.org) - An HMO and GoBack server for TiVos. * [Radarr](https://radarr.video/) - for organising and downloading movies +* [Readarr](https://readarr.com/) - an ebook collection manager for Usenet and BitTorrent users * [Route53 DDNS](https://crazymax.dev/ddns-route53/) - Automatically update AWS Route53 with your IP address * [RSS-Bridge](https://rss-bridge.github.io/rss-bridge/) - The RSS feed for websites missing it * [Sabnzbd](https://sabnzbd.org/) - A powerful usenet downloader that FreeNAS provides From 4c711abd9cd3682e39c93d93cdb903c78d3ca91d Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 17:17:14 -0700 Subject: [PATCH 08/15] Update main.yml --- roles/readarr/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index e7c5d54141..ad5263a9ab 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: Create Readarr Directories file: path: "{{ item }}" From 8bf3c750405aa29cd3f3bd1d50bf42d956eb0eb6 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 17:30:07 -0700 Subject: [PATCH 09/15] Update main.yml --- roles/readarr/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index ad5263a9ab..811f68f6fe 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -7,7 +7,7 @@ - "{{ readarr_data_directory }}" - "{{ readarr_data_directory }}/config" -- name: Create Readarr Docker Container +- name: Create Readarr Container docker_container: name: readarr image: linuxserver/readarr:nightly From e9348399ce29a4b9b70fb31684938c8c89b80629 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 16 Aug 2022 19:31:33 -0700 Subject: [PATCH 10/15] Update main.yml --- roles/readarr/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index 811f68f6fe..a62ced57f9 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -7,7 +7,7 @@ - "{{ readarr_data_directory }}" - "{{ readarr_data_directory }}/config" -- name: Create Readarr Container +- name: Create Readarr Docker Container docker_container: name: readarr image: linuxserver/readarr:nightly @@ -30,4 +30,4 @@ traefik.http.routers.readarr.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.readarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.services.readarr.loadbalancer.server.port: "8787" - memory: "{{readarr_memory}}" + memory: "{{ readarr_memory }}" From c6053a016ec9520c0d66c2a9ccbdda30e561631e Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Wed, 17 Aug 2022 08:50:34 -0700 Subject: [PATCH 11/15] Update main.yml --- roles/readarr/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/readarr/defaults/main.yml b/roles/readarr/defaults/main.yml index 8e126c40fb..823194775c 100644 --- a/roles/readarr/defaults/main.yml +++ b/roles/readarr/defaults/main.yml @@ -6,6 +6,7 @@ readarr_available_externally: false # directories readarr_data_directory: "{{ docker_home }}/readarr" readarr_download_directory: "{{ downloads_root }}" +readarr_books_directory: "{{ books_root }}" # uid / gid readarr_user_id: "998" From fc0c4d1cfacc2f3e7fe097b8717af54ef9547d8c Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Wed, 17 Aug 2022 08:50:50 -0700 Subject: [PATCH 12/15] Update main.yml --- roles/readarr/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index a62ced57f9..ae3dc5b7ef 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -14,7 +14,7 @@ pull: true volumes: - "{{ readarr_data_directory }}/config:/config" - - "{{ books_root }}:/books" + - "{{ readarr_books_directory }}:/books" - "{{ readarr_download_directory }}:/downloads:rw" env: TZ: "{{ ansible_nas_timezone }}" From 47afb11f1d513c4f188cbe707e192a1f076034ca Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Wed, 17 Aug 2022 08:53:41 -0700 Subject: [PATCH 13/15] Update main.yml --- roles/readarr/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index ae3dc5b7ef..9c6ed8e334 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -13,8 +13,8 @@ image: linuxserver/readarr:nightly pull: true volumes: - - "{{ readarr_data_directory }}/config:/config" - - "{{ readarr_books_directory }}:/books" + - "{{ readarr_data_directory }}/config:/config:rw" + - "{{ books_root }}:/books:rw" - "{{ readarr_download_directory }}:/downloads:rw" env: TZ: "{{ ansible_nas_timezone }}" From 026b9e18cd2ca8ab8be9cca34f969d5c9f7a6ac9 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Wed, 17 Aug 2022 08:57:58 -0700 Subject: [PATCH 14/15] Update main.yml --- roles/readarr/defaults/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/readarr/defaults/main.yml b/roles/readarr/defaults/main.yml index 823194775c..69555fb54c 100644 --- a/roles/readarr/defaults/main.yml +++ b/roles/readarr/defaults/main.yml @@ -9,8 +9,9 @@ readarr_download_directory: "{{ downloads_root }}" readarr_books_directory: "{{ books_root }}" # uid / gid -readarr_user_id: "998" -readarr_group_id: "1001" +readarr_user_id: "0" +readarr_group_id: "0" + # network readarr_hostname: "readarr" readarr_port: "8787" From 55cece4233c4cb3fed88976c6dc8f62afbdb741e Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Thu, 18 Aug 2022 01:16:22 -0700 Subject: [PATCH 15/15] Update main.yml Done. (I swear I did this yesterday!) --- roles/readarr/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/readarr/tasks/main.yml b/roles/readarr/tasks/main.yml index 9c6ed8e334..154b5ac107 100644 --- a/roles/readarr/tasks/main.yml +++ b/roles/readarr/tasks/main.yml @@ -14,7 +14,7 @@ pull: true volumes: - "{{ readarr_data_directory }}/config:/config:rw" - - "{{ books_root }}:/books:rw" + - "{{ readarr_books_directory }}:/books:rw" - "{{ readarr_download_directory }}:/downloads:rw" env: TZ: "{{ ansible_nas_timezone }}"