diff --git a/README.md b/README.md index 8f26199d..e76de507 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ Ansible config and a bunch of Docker containers. * [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 +* [Sabnzbd](https://sabnzbd.org/) - A powerful usenet downloader that FreeNAS provides +* [Serposcope](https://serposcope.serphacker.com/en/) - tracker to monitor website ranking * [Sickchill](https://sickchill.github.io/) - for managing TV episodes * [Sonarr](https://sonarr.tv/) - for downloading and managing TV episodes * [Syncthing](https://syncthing.net/) - sync directories with another device diff --git a/docs/applications/sabnzbd.md b/docs/applications/sabnzbd.md new file mode 100644 index 00000000..1b258dc6 --- /dev/null +++ b/docs/applications/sabnzbd.md @@ -0,0 +1,11 @@ +# Sabnzbd + +Homepage: [https://sabnzbd.org/) + +The time tested Usenet downloader provided with FreeNAS. It just works for those migrating from FreeNAS. + +## Usage + +Set `sabnzbd_enabled: true` in your `inventories//nas.yml` file. + +The Sabnzbd web interface can be found at http://ansible_nas_host_or_ip:18080. Use this interface to configure the software upon first connection. diff --git a/docs/configuration/application_ports.md b/docs/configuration/application_ports.md index 2944a814..e0d984c1 100644 --- a/docs/configuration/application_ports.md +++ b/docs/configuration/application_ports.md @@ -62,6 +62,8 @@ By default, applications can be found on the ports listed below. | PyTivo | 9032 | Bridge | HTTP | | PyTivo | 2190 | Bridge | UDP | | Radarr | 7878 | Bridge | HTTP | +| Sabnzbd | 18080 | Bridge | HTTP | +| Sabnzbd | 19090 | Bridge | HTTPS | | Sickchill | 8081 | Bridge | HTTP | | Sonarr | 8989 | Bridge | HTTP | | Syncthing admin | 8384 | Host | HTTP | @@ -81,3 +83,4 @@ By default, applications can be found on the ports listed below. | Wallabag | 7780 | Bridge | HTTP | | YouTubeDL-Mater | 8998 | Bridge | HTTP | | ZNC | 6677 | Bridge | | + diff --git a/group_vars/all.yml b/group_vars/all.yml index df0443ca..f2d77c8d 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -16,6 +16,9 @@ ### Ansible-NAS Applications ### +# Downloading +sabnzbd_enabled: false + # Media Sourcing jellyfin_enabled: false youtubedlmaterial_enabled: false @@ -401,3 +404,13 @@ vd_users: password: "topsecret" sudo: "Y" vd_rdp_port: 3389 + +### +### Sabnzbd defaults +### +sabnzbd_available_externally: "false" +sabnzbd_data_directory: "{{ docker_home }}/sabnzbd" +sabnzbd_user_id: "0" +sabnzbd_group_id: "0" +sabnzbd_http_port: "18080" +sabnzbd_https_port: "19090" diff --git a/nas.yml b/nas.yml index c3db9849..9f45dec8 100644 --- a/nas.yml +++ b/nas.yml @@ -338,3 +338,7 @@ - import_tasks: tasks/pytivo.yml when: (pytivo_enabled | default(False)) tags: pytivo + + - import_tasks: tasks/sabnzbd.yml + when: (sabnzbd_enabled | default(False)) + tags: sabnzbd diff --git a/tasks/sabnzbd.yml b/tasks/sabnzbd.yml new file mode 100644 index 00000000..8c3513cd --- /dev/null +++ b/tasks/sabnzbd.yml @@ -0,0 +1,32 @@ +--- +- name: Create Sabnzbd Data Directory + file: + path: "{{ item }}" + state: directory + owner: "{{ sabnzbd_user_id }}" + group: "{{ sabnzbd_group_id }}" + mode: "u=rwX,g=rwX,o=rX" + recurse: true + with_items: + - "{{ sabnzbd_data_directory }}" + +- name: Sabnzbd + docker_container: + name: sabnzbd + image: linuxserver/sabnzbd + pull: true + volumes: + - "{{ sabnzbd_data_directory }}:/config:rw" + ports: + - "{{ sabnzbd_http_port }}:8080" + - "{{ sabnzbd_https_port }}:9090" + env: + TZ: "{{ ansible_nas_timezone }}" + PUID: "{{ sabnzbd_user_id }}" + PGID: "{{ sabnzbd_group_id }}" + restart_policy: unless-stopped + labels: + traefik.backend: "sabnzbd" + traefik.frontend.rule: "Host:sabnzbd.{{ ansible_nas_domain }}" + traefik.enable: "{{ sabnzbd_available_externally }}" + traefik.port: "8080"