docker-media-converter

docker-media-converter

Build Status Ansible Galaxy License

Ansible Galaxy role to manage and run a media-converter docker container.

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

# Docker container name
docker_media_converter_container_name: 'mediaconverter'

# Media directories that need to be mounted inside the container
docker_media_container_exposed_volumes: []

# Container environment variables
docker_media_container_env_variables: {}

Examples

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

ansible-galaxy install marvinpinto.docker-media-converter -p ./roles

Use it in a playbook as follows:

- hosts: '127.0.0.1'
  roles:
    - role: 'marvinpinto.docker-media-converter'
      become: true
      docker_media_container_env_variables:
        MEDIA_TVSHOWS: '/tv'
        MEDIA_MOVIES: '/movies'
        PLEX_URL: 'http://127.0.0.1:32400'
        PLEX_TOKEN: 'sekr3t'
      docker_media_container_exposed_volumes:
        - '/opt/data/tv:/tv'
        - '/opt/data/movies:/movies'
About

Ansible Galaxy role to manage and run the media converter docker container.

Install
ansible-galaxy install marvinpinto/ansible-role-docker-media-converter
GitHub repository
License
mit
Downloads
73
Owner
Computer nerd.