Code Monkey home page Code Monkey logo

ansible-role-docker-sabnzbd's Introduction

docker-sabnzbd

Build Status Ansible Galaxy License

Ansible Galaxy role to manage and run a sabnzbd docker container.

This role wires together the sabnzbd docker container created by linuxserver, along with various boilerplate to get things going.

Requirements

This role has been tested on Ubuntu 14.04 and will likely only work on an Ubuntu-like system. You will also need a functioning docker environment and a recent-is version of docker-py for this role to work.

If you have neither and would like ansible to set this up for you, have a look at the marvinpinto.docker Galaxy role.

Role Variables

# Sabnzbd host port
docker_sabnzbd_exposed_port: '8080'

# Docker container name
docker_sabnzbd_container_name: 'sabnzbd'

# Directory that will be used as the root of all sabnzbd-related configuration
# & data. Note that these sub-directories *will* be automatically created if
# they don't already exist.
#
# So, assuming '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

Install this module from Ansible Galaxy into the './roles' directory:

ansible-galaxy install marvinpinto.docker-sabnzbd -p ./roles

Use it in a playbook as follows:

- hosts: '127.0.0.1'
  roles:
    - role: 'marvinpinto.docker-sabnzbd'
      become: true

Mounted Directory

The reasoning behind storing all related configuration in the docker_sabnzbd_mounted_directory root directory is because a person now has the ability to manage all the configuration + data outside of Ansible.

This becomes especially useful when said mounted directory resides on a separate filesystem (EBS, USB disk, etc).

ansible-role-docker-sabnzbd's People

Contributors

marvinpinto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jesperrasmussen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.