infra-v1/applications/roles/media-manager/tasks/main.yml

238 lines
5.8 KiB
YAML
Raw Normal View History

---
2022-06-07 13:43:09 +00:00
# Docker Network
- name: Create media network
community.docker.docker_network:
name: media
ipam_config:
subnet: 172.23.27.0/24
2022-06-07 13:43:09 +00:00
# Torrent Client
- name: Deploy Transmission
community.docker.docker_container:
name: transmission
image: haugene/transmission-openvpn
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
2024-09-16 03:45:08 +00:00
- OPENVPN_PROVIDER=PIA
- OPENVPN_CONFIG=ca_toronto
- "OPENVPN_USERNAME={{ PIA_USER }}"
- "OPENVPN_PASSWORD={{ PIA_PASS }}"
- LOCAL_NETWORK=192.168.0.0/24
2022-06-07 13:43:09 +00:00
volumes:
- "{{ CONFIG_FOLDER }}/transmission/data:/data"
ports:
- 9091:9091
2022-06-07 13:43:09 +00:00
capabilities:
- NET_ADMIN
# File Browser
- name: Deploy FileBrowser
community.docker.docker_container:
name: filebrowser
image: filebrowser/filebrowser
restart_policy: unless-stopped
env:
- PUID={{ PUID }}
- PGID={{ PGID }}
volumes:
- "{{ MEDIA_FOLDER }}:/srv"
- "{{ CONFIG_FOLDER }}/filebrowser/filebrowser.db:/database.db"
ports:
- 8080:80
# Index Handler
- name: Deploy Prowlarr
community.docker.docker_container:
name: prowlarr
image: lscr.io/linuxserver/prowlarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/prowlarr/config:/config"
ports:
- 9696:9696
# TV Show Manager
- name: Deploy Sonarr
community.docker.docker_container:
name: sonarr
image: lscr.io/linuxserver/sonarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/sonarr/config:/config"
- "{{ DOWNLOAD_FOLDER }}:/downloads"
- "{{ TV_FOLDER }}:/tv"
- "{{ TV_ANIME_FOLDER }}:/tv-anime"
ports:
- 8989:8989
- name: Deploy Sonarr 4k
community.docker.docker_container:
name: sonarr4k
image: lscr.io/linuxserver/sonarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/sonarr/config:/config"
- "{{ DOWNLOAD_FOLDER }}:/downloads"
- "{{ TV_4K_FOLDER }}:/tv"
ports:
- 9898:8989
# Movie Manager
- name: Deploy Radarr
community.docker.docker_container:
name: radarr
image: lscr.io/linuxserver/radarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/radarr/config:/config"
- "{{ DOWNLOAD_FOLDER }}:/downloads"
- "{{ MOVIE_FOLDER }}:/movie"
- "{{ MOVIE_ANIME_FOLDER }}:/movie-anime"
ports:
- 7878:7878
- name: Deploy Radarr 4k
2022-06-07 13:43:09 +00:00
community.docker.docker_container:
name: radarr
image: lscr.io/linuxserver/radarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/radarr/config:/config"
- "{{ DOWNLOAD_FOLDER }}:/downloads"
- "{{ MOVIE_4K_FOLDER }}:/movie"
2022-06-07 13:43:09 +00:00
ports:
- 8787:7878
# Distributable Transcoding Server
- name: Deploy Tdarr
2022-06-07 13:43:09 +00:00
community.docker.docker_container:
name: tdarr-server
image: ghcr.io/haveagitgat/tdarr
2022-06-07 13:43:09 +00:00
restart_policy: unless-stopped
network_mode: bridge
2022-06-07 13:43:09 +00:00
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
- serverIP=0.0.0.0
- webUIPort=8265
- serverPort=8266
- internalNode=true
- nodeId=ServerNode
- NVIDIA_DRIVER_CAPABILITIES=all
- NVIDIA_VISIBLE_DEVICES=all
2022-06-07 13:43:09 +00:00
volumes:
- "{{ CONFIG_FOLDER }}/tdarr-server/server:/app/server"
- "{{ CONFIG_FOLDER }}/tdarr-server/config:/app/config"
- "{{ CONFIG_FOLDER }}/tdarr-server/logs:/app/logs"
- "{{ MEDIA_FOLDER }}:/content"
- /temp:/temp
2022-06-07 13:43:09 +00:00
ports:
- 8265:8265
- 8266:8266
2022-06-07 13:43:09 +00:00
# Music Manager
- name: Deploy Lidarr
community.docker.docker_container:
name: lidarr
image: lscr.io/linuxserver/lidarr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/lidarr/config:/config"
- "{{ DOWNLOAD_FOLDER }}:/downloads"
- "{{ MUSIC_FOLDER }}:/music"
ports:
- 8686:8686
# Media Requests
- name: Deploy Overseerr
community.docker.docker_container:
name: overseerr
image: lscr.io/linuxserver/overseerr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
2024-09-16 03:45:08 +00:00
- LOG_LEVEL=INFO
2022-06-07 13:43:09 +00:00
volumes:
- "{{ CONFIG_FOLDER }}/overseerr/config:/config"
ports:
- 5055:5055
# Discord Bot for Media Requests
- name: Deploy Requestrr
community.docker.docker_container:
name: requestrr
image: lscr.io/linuxserver/requestrr
restart_policy: unless-stopped
env:
- "TZ={{ TZ }}"
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
volumes:
- "{{ CONFIG_FOLDER }}/requestrr/config:/config"
ports:
- 4545:4545
2022-06-07 13:43:09 +00:00
2024-09-16 03:45:08 +00:00
- name: Deploy Plex
community.docker.docker_container:
name: plex
image: lscr.io/linuxserver/plex
restart_policy: always
env:
- "PUID={{ PUID }}"
- "PGID={{ PGID }}"
- VERSION=docker
volumes:
- "{{ CONFIG_FOLDER }}/plex/config:/config"
- "{{ MEDIA_FOLDER }}:/content"
2022-06-07 13:43:09 +00:00
# Custom TV Channels
- name: Deploy disquetv
community.docker.docker_container:
name: disquetv
image: vexorian/dizquetv
restart_policy: unless-stopped
volumes:
- dizquetv-data:/home/node/app/.dizquetv
ports:
- 32500:8000
2022-06-15 22:51:02 +00:00
# Plex Stats
- name: Deploy Tautulli
community.docker.docker_container:
name: tautulli
image: lscr.io/linuxserver/tautulli:latest
restart_policy: unless-stopped
volumes:
- "{{ CONFIG_FOLDER }}/tautulli/config:/config"
ports:
- 8181:8181