Merge branch 'sabnzbd-work' of https://github.com/DLLarson/ansible-nas into DLLarson-sabnzbd-work

* 'sabnzbd-work' of https://github.com/DLLarson/ansible-nas:
  Add support for sabnzbd.
This commit is contained in:
David Stephens 2022-05-28 00:08:34 +01:00
commit 299e924337
6 changed files with 65 additions and 0 deletions

View file

@ -88,6 +88,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

View file

@ -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/<your_inventory>/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.

View file

@ -71,6 +71,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 |
@ -90,3 +92,4 @@ By default, applications can be found on the ports listed below.
| Wallabag | 7780 | Bridge | HTTP |
| YouTubeDL-Mater | 8998 | Bridge | HTTP |
| ZNC | 6677 | Bridge | |

View file

@ -16,6 +16,9 @@
### Ansible-NAS Applications
###
# Downloading
sabnzbd_enabled: false
# Media Sourcing
jellyfin_enabled: false
youtubedlmaterial_enabled: false
@ -407,3 +410,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"

View file

@ -378,3 +378,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

32
tasks/sabnzbd.yml Normal file
View file

@ -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"