Deploy youtube-dl-server using docker and nginx.
youtubedl_build_from_repo
: Force docker image build from git repositoryyoutubedl_git_repo
: Url of git repository to build for ifyoutubedl_build_from_repo
is true or if the platform is not 64bit x86.youtubedl_git_branch
: Use a specific git branch to build fromyoutubedl_build_youtubedl
: Youtube-dl fork to use (youtube-dl
oryoutube-dlc
) when building from the repoyoutubedl_build_atomicparsley
: Add atomicparsley to the image (necessary for the--embed-thumbnail
flag)youtubedl_dockerhub_image
: Use a specific image and tag from docker hubyoutubedl_container_build_dir
: Temporary directory for docker image build if building from repositoryyoutubedl_server_name
: Domain name hosting youtube-dl-serveryoutubedl_tls_cert_dir
: Directory storing the TLS keychain and private keyyoutubedl_auth_basic
: Enable basic authenticationyoutubedl_auth_basic_file_path
: Path to the basic authentication fileyoutubedl_nginx_allow
: List of nginx allow rules targetyoutubedl_nginx_deny
: List of nginx deny rules targetyoutubedl_docker_port
: Port to use for the docker containeryoutubedl_user_uid
: run container with specific UIDyoutubedl_user_gid
: run container with specific GIDyoutubedl_memory_limit
: Memory limitation for the containeryoutubedl_host_data_dir
: Host directory to mount as data directory. Downloaded media will be stored thereyoutubedl_config_host_location
: If uncommented and set, enables overwriting the container's default config.yml file to set own youtube-dl-server settings.ydl_server
andydl_options
: Dictionnaries containing your youtube-dl-server configurations. Refer to the youtube-dl-server documentation.
---
- hosts: all
gather_facts: false
become: true
roles:
- role: ansible-role-youtubedl-server
MIT