From c79c6b550671c649b6817b78901f9feb589adb4f Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 15:58:48 -0700 Subject: [PATCH 01/13] Mylar addition --- nas.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nas.yml b/nas.yml index 9078d010..3ebbd8e1 100644 --- a/nas.yml +++ b/nas.yml @@ -76,7 +76,11 @@ when: (thelounge_enabled | default(False)) tags: thelounge - - import_tasks: tasks/sonarr.yml + - import_tasks: tasks/mylar.yml + when: (mylar_enabled | default(False)) + tags: mylar + +- import_tasks: tasks/sonarr.yml when: (sonarr_enabled | default(False)) tags: sonarr From 28074770211a6c52c3775bf372080c192522f45f Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 15:59:33 -0700 Subject: [PATCH 02/13] Mylar addition --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 46d1ede6..83efe7b4 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Ansible config and a bunch of Docker containers. * [MiniDlna](https://sourceforge.net/projects/minidlna/) - simple media server which is fully compliant with DLNA/UPnP-AV clients * [Miniflux](https://miniflux.app/) - An RSS news reader * [Mosquitto](https://mosquitto.org) - An open source MQTT broker +* [Mylar](https://github.com/evilhero/mylar) - An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents * [MyMediaForAlexa](https://www.mymediaalexa.com/) - Lets you stream your music collection to your alexa device * [Netdata](https://my-netdata.io/) - An extremely comprehensive system monitoring solution * [Nextcloud](https://nextcloud.com/) - A self-hosted Dropbox alternative From 3498de18a3ada16fb81bc042331619ea478dc426 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:00:06 -0700 Subject: [PATCH 03/13] Mylar addition --- templates/traefik/traefik.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/traefik/traefik.toml b/templates/traefik/traefik.toml index 98a9352d..d2738559 100644 --- a/templates/traefik/traefik.toml +++ b/templates/traefik/traefik.toml @@ -199,6 +199,7 @@ onDemand = false # create certificate when container is created "jellyfin.{{ ansible_nas_domain }}", "joomla.{{ ansible_nas_domain }}", "lidarr.{{ ansible_nas_domain }}", + "mylar.{{ ansible_nas_domain }}", "miniflux.{{ ansible_nas_domain }}", "netdata.{{ ansible_nas_domain }}", "nextcloud.{{ ansible_nas_domain }}", From 73b294edc4cf6943ee9a3b81881e64ae42c39fc6 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:01:06 -0700 Subject: [PATCH 04/13] Mylar addition --- tasks/mylar.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tasks/mylar.yml diff --git a/tasks/mylar.yml b/tasks/mylar.yml new file mode 100644 index 00000000..e9babc84 --- /dev/null +++ b/tasks/mylar.yml @@ -0,0 +1,30 @@ +--- +- name: Create Mylar Directory + file: + path: "{{ item }}" + state: directory + with_items: + - "{{ mylar_data_directory }}" + +- name: Mylar + docker_container: + name: mylar + image: linuxserver/mylar + pull: true + volumes: + - "{{ mylar_comics_directory }}:/comics:rw" + - "{{ mylar_downloads_directory }}:/downloads:rw" + - "{{ mylar_data_directory }}:/config:rw" + ports: + - "{{ mylar_port_http }}:8090" + env: + TZ: "{{ ansible_nas_timezone }}" + PUID: "{{ mylar_user_id }}" + PGID: "{{ mylar_group_id }}" + restart_policy: unless-stopped + memory: 1g + labels: + traefik.backend: "mylar" + traefik.frontend.rule: "Host:mylar.{{ ansible_nas_domain }}" + traefik.enable: "{{ mylar_available_externally }}" + traefik.port: "{{ mylar_port_http }}" From f2f92dd5d707222ce230a9649634b1ba1f502dab Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:02:33 -0700 Subject: [PATCH 05/13] Mylar addition --- 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 ee55150e..76728076 100644 --- a/docs/configuration/application_ports.md +++ b/docs/configuration/application_ports.md @@ -35,6 +35,7 @@ By default, applications can be found on the ports listed below. | Miniflux | 8070 | | | Mosquitto | 1883 | MQTT | | Mosquitto | 9001 | Websocket | +| Mylar | 8585 | HTTP | | MyMediaForAlexa | 52051 | | | Netdata | 19999 | | | Nextcloud | 8080 | | From f942da7f549655b7547bd7a8f6eafdba538b856e Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:04:57 -0700 Subject: [PATCH 06/13] Mylar addition --- docs/applications/mylar.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/applications/mylar.md diff --git a/docs/applications/mylar.md b/docs/applications/mylar.md new file mode 100644 index 00000000..0a90a0f3 --- /dev/null +++ b/docs/applications/mylar.md @@ -0,0 +1,14 @@ + +# Mylar + +Homepage: [https://github.com/evilhero/mylar](https://github.com/evilhero/mylar) + +An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents + +## Usage + +Set `mylar_enabled: true` in your `inventories//nas.yml` file. + +If you want to access Mylar externally, don't forget to set `mylar_available_externally: "true"` in your `inventories//nas.yml` file. + +The Mylar web interface can be found at http://ansible_nas_host_or_ip:5858. From 173d1e50a6b5f759ba5a1f656178b79535b2bfe1 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:06:49 -0700 Subject: [PATCH 07/13] Mylar addition --- group_vars/all.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/group_vars/all.yml b/group_vars/all.yml index 3bcf3f92..6d39d24c 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -38,6 +38,7 @@ emby_enabled: false bazarr_enabled: false ombi_enabled: false lidarr_enabled: false +mylar_enabled: false # Music airsonic_enabled: false @@ -449,6 +450,17 @@ duplicati_available_externally: "false" duplicati_data_directory: "{{ docker_home }}/duplicati/config" duplicati_port: "8200" +### +### Mylar +### +mylar_available_externally: "false" +mylar_data_directory: "{{ docker_home }}/mylar/config" +mylar_comics_directory: "{{ comics_root }}" +mylar_downloads_directory: "{{ downloads_root }}" +mylar_port_http: "8585" +mylar_user_id: "999" +mylar_group_id: "1001" + ### ### Sonarr ### From 4e764d7cfd0ad0f4db3864c93d29a3d18f3c2b04 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 2 May 2020 16:50:34 -0700 Subject: [PATCH 08/13] spacing fix --- nas.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nas.yml b/nas.yml index 3ebbd8e1..69e1a577 100644 --- a/nas.yml +++ b/nas.yml @@ -80,7 +80,7 @@ when: (mylar_enabled | default(False)) tags: mylar -- import_tasks: tasks/sonarr.yml + - import_tasks: tasks/sonarr.yml when: (sonarr_enabled | default(False)) tags: sonarr From 9b612b913ab8f7c09b5ed479d84b8e66a811dbb7 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Sat, 9 May 2020 21:09:58 -0700 Subject: [PATCH 09/13] add Docker container link --- docs/applications/mylar.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/applications/mylar.md b/docs/applications/mylar.md index 0a90a0f3..bc1ce745 100644 --- a/docs/applications/mylar.md +++ b/docs/applications/mylar.md @@ -2,6 +2,7 @@ # Mylar Homepage: [https://github.com/evilhero/mylar](https://github.com/evilhero/mylar) +Docker Container: [https://hub.docker.com/r/linuxserver/mylar](https://hub.docker.com/r/linuxserver/mylar) An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents From 4efe7174961dbe9e08ed59491593451fb8bba632 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 12 May 2020 10:49:19 -0700 Subject: [PATCH 10/13] set default uid/pguid to root --- group_vars/all.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index 6d39d24c..3ffd62a9 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -458,8 +458,8 @@ mylar_data_directory: "{{ docker_home }}/mylar/config" mylar_comics_directory: "{{ comics_root }}" mylar_downloads_directory: "{{ downloads_root }}" mylar_port_http: "8585" -mylar_user_id: "999" -mylar_group_id: "1001" +mylar_user_id: "0" +mylar_group_id: "0" ### ### Sonarr From 1d05f3a87f95f7358e6befdaceb5f683070e0cfc Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 12 May 2020 10:51:35 -0700 Subject: [PATCH 11/13] subjective change --- group_vars/all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index 3ffd62a9..147f4b97 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -454,7 +454,7 @@ duplicati_port: "8200" ### Mylar ### mylar_available_externally: "false" -mylar_data_directory: "{{ docker_home }}/mylar/config" +mylar_data_directory: "{{ docker_home }}/mylar" mylar_comics_directory: "{{ comics_root }}" mylar_downloads_directory: "{{ downloads_root }}" mylar_port_http: "8585" From 1f3f2f95d8e9e9585ff264b4bc0c4c630c525b5f Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 12 May 2020 10:52:03 -0700 Subject: [PATCH 12/13] subjective change --- tasks/mylar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/mylar.yml b/tasks/mylar.yml index e9babc84..e0611da7 100644 --- a/tasks/mylar.yml +++ b/tasks/mylar.yml @@ -4,7 +4,7 @@ path: "{{ item }}" state: directory with_items: - - "{{ mylar_data_directory }}" + - "{{ mylar_data_directory }}/config" - name: Mylar docker_container: From 661b11b3b0a12dce0a7d433a9dc85861762ebe70 Mon Sep 17 00:00:00 2001 From: bcurran3 Date: Tue, 12 May 2020 10:52:49 -0700 Subject: [PATCH 13/13] subjective change remainder --- tasks/mylar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/mylar.yml b/tasks/mylar.yml index e0611da7..e4108a8e 100644 --- a/tasks/mylar.yml +++ b/tasks/mylar.yml @@ -14,7 +14,7 @@ volumes: - "{{ mylar_comics_directory }}:/comics:rw" - "{{ mylar_downloads_directory }}:/downloads:rw" - - "{{ mylar_data_directory }}:/config:rw" + - "{{ mylar_data_directory }}/config:/config:rw" ports: - "{{ mylar_port_http }}:8090" env: