marvinpinto.docker-sabnzbd
docker-sabnzbd
This is an Ansible Galaxy role for managing and running a sabnzbd Docker container.
This role connects to the sabnzbd Docker container made by linuxserver and includes necessary setup files to get started.
Requirements
This role works with Ubuntu 14.04 and is likely compatible only with similar Ubuntu systems. You’ll also need a working Docker setup and a recent version of docker-py
for this role to function.
If you don’t have these and would like Ansible to set things up, check out the marvinpinto.docker role.
Role Variables
# Port for Sabnzbd on the host
docker_sabnzbd_exposed_port: '8080'
# Name of the Docker container
docker_sabnzbd_container_name: 'sabnzbd'
# Directory used for Sabnzbd settings and data. Sub-directories will be created if they don’t exist yet.
#
# For example, if 'docker_sabnzbd_mounted_directory' is set to:
# /tmp/sabnzbd_mount, the following directories will be created automatically:
# /tmp/sabnzbd_mount/config
# /tmp/sabnzbd_mount/downloads
# /tmp/sabnzbd_mount/incomplete-downloads
docker_sabnzbd_mounted_directory: '/tmp/sabnzbd_mount'
Examples
To install this module from Ansible Galaxy into the './roles' directory, run:
ansible-galaxy install marvinpinto.docker-sabnzbd -p ./roles
In a playbook, use it like this:
- hosts: '127.0.0.1'
roles:
- role: 'marvinpinto.docker-sabnzbd'
become: true
Mounted Directory
The reason for storing all configuration in the docker_sabnzbd_mounted_directory
is to allow you to manage everything outside of Ansible.
This is especially helpful if the mounted directory is on a different storage system (like EBS or USB drives).
Ansible Galaxy role to manage and run the sabnzbd docker container.
ansible-galaxy install marvinpinto.docker-sabnzbd