marvinpinto.docker-couchpotato
docker-couchpotato
Ansible Galaxy 角色用于管理和运行 couchpotato Docker 容器。
该角色将 linuxserver 创建的 couchpotato docker 容器 连接起来,并添加各种基本配置以使其得以运行。
要求
该角色已在 Ubuntu 14.04 上测试,可能只适用于 Ubuntu 系统。你还需要一个正常工作的 Docker 环境以及较新版本的 docker-py
才能使此角色正常工作。
如果你没有这些,并希望 Ansible 为你设置,可以查看 marvinpinto.docker Galaxy 角色。
角色变量
# Docker 容器名称
docker_couchpotato_container_name: 'couchpotato'
# Couchpotato 主机端口
docker_couchpotato_exposed_port: '5050'
# 用作所有与 couchpotato 相关的配置和数据根目录的目录。请注意,如果这些子目录不存在,将自动创建它们。
#
# 所以,假设 'docker_couchpotato_mounted_directory' 设置为:
# /tmp/couchpotato_mount,以下目录将被自动创建:
#
# /tmp/couchpotato_mount/config
# /tmp/couchpotato_mount/raw_movie_downloads
# /tmp/couchpotato_mount/movies
docker_couchpotato_mounted_directory: '/tmp/couchpotato_mount'
示例
从 Ansible Galaxy 安装此模块到 './roles' 目录:
ansible-galaxy install marvinpinto.docker-couchpotato -p ./roles
在剧本中使用它,如下所示:
- hosts: '127.0.0.1'
roles:
- role: 'marvinpinto.docker-couchpotato'
become: true
挂载目录
将所有相关配置存储在 docker_couchpotato_mounted_directory
根目录中的原因是,用户现在可以在 Ansible 之外管理所有的配置和数据。
当该挂载目录位于单独的文件系统(如 EBS、USB 硬盘等)上时,这尤其有用。
关于项目
Ansible Galaxy role to manage and run the couchpotato docker container.
安装
ansible-galaxy install marvinpinto.docker-couchpotato
许可证
mit
下载
129
拥有者
Computer nerd.