Compare commits
10 Commits
696ccc41f7
...
962300402d
Author | SHA1 | Date | |
---|---|---|---|
962300402d | |||
404e6a8009 | |||
85f4f07edf | |||
c1be300462 | |||
835864c53a | |||
12a7009308 | |||
4ca7348be2 | |||
aab9c8d082 | |||
7d49c21c62 | |||
3780ee6cd2 |
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
MEDIA_FOLDER: /mnt/media
|
|
||||||
CONFIG_FOLDER: /mnt/apps
|
|
||||||
DOWNLOADS_FOLDER: /mnt/media/downloads
|
|
||||||
|
|
||||||
TZ: America/New_York
|
|
||||||
PUID: 1000
|
|
||||||
PGID: 1000
|
|
4
applications/host_vars/all.yml
Normal file
4
applications/host_vars/all.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
TZ: "America/New_York"
|
||||||
|
PUID: 1000
|
||||||
|
PGID: 1000
|
@ -30,5 +30,8 @@
|
|||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
command: --schedule "0 0 4 * * *"
|
command: --schedule "0 0 4 * * *"
|
||||||
|
env:
|
||||||
|
- "TZ={{ TZ }}"
|
||||||
|
- WATCHTOWER_CLEANUP=true
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- qemu-guest-agent
|
- qemu-guest-agent
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- include_tasks: docker.yml
|
- include_tasks: docker.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for base
|
|
@ -1,6 +1,6 @@
|
|||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: your name
|
author: Ryan Goodwin
|
||||||
description: your role description
|
description: Install home service
|
||||||
company: your company (optional)
|
company: your company (optional)
|
||||||
|
|
||||||
# If the issue tracker for your role is not on github, uncomment the
|
# If the issue tracker for your role is not on github, uncomment the
|
||||||
@ -16,7 +16,7 @@ galaxy_info:
|
|||||||
# - CC-BY-4.0
|
# - CC-BY-4.0
|
||||||
license: license (GPL-2.0-or-later, MIT, etc)
|
license: license (GPL-2.0-or-later, MIT, etc)
|
||||||
|
|
||||||
min_ansible_version: 2.1
|
min_ansible_version: "2.1"
|
||||||
|
|
||||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||||
# min_ansible_container_version:
|
# min_ansible_container_version:
|
||||||
@ -26,18 +26,8 @@ galaxy_info:
|
|||||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||||
# To view available platforms and versions (or releases), visit:
|
# To view available platforms and versions (or releases), visit:
|
||||||
# https://galaxy.ansible.com/api/v1/platforms/
|
# https://galaxy.ansible.com/api/v1/platforms/
|
||||||
#
|
platforms:
|
||||||
# platforms:
|
- name: Ubuntu
|
||||||
# - name: Fedora
|
|
||||||
# versions:
|
|
||||||
# - all
|
|
||||||
# - 25
|
|
||||||
# - name: SomePlatform
|
|
||||||
# versions:
|
|
||||||
# - all
|
|
||||||
# - 1.0
|
|
||||||
# - 7
|
|
||||||
# - 99.99
|
|
||||||
|
|
||||||
galaxy_tags: []
|
galaxy_tags: []
|
||||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||||
|
@ -55,3 +55,17 @@
|
|||||||
- 8080:80
|
- 8080:80
|
||||||
- 8081:81
|
- 8081:81
|
||||||
- 4443:443
|
- 4443:443
|
||||||
|
|
||||||
|
- name: Deploy Librespeed
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: librespeed
|
||||||
|
image: ghcr.io/linuxserver/librespeed:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
env:
|
||||||
|
- "TZ={{ TZ }}"
|
||||||
|
- "PUID={{ PUID }}"
|
||||||
|
- "PGID={{ PGID }}"
|
||||||
|
volumes:
|
||||||
|
- "{{ CONFIG_FOLDER }}/librespeed/config:/config"
|
||||||
|
ports:
|
||||||
|
- 8505:80
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for home-apps
|
|
@ -1,38 +1,69 @@
|
|||||||
Role Name
|
Media Manager
|
||||||
=========
|
=============
|
||||||
|
|
||||||
A brief description of the role goes here.
|
A series of docker containers to allow full automation of media management.
|
||||||
|
|
||||||
Requirements
|
|
||||||
------------
|
|
||||||
|
|
||||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
|
||||||
|
|
||||||
Role Variables
|
Role Variables
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
| Variable | Description | Required | Default |
|
||||||
|
| -------------------- | --------------------------------------------------- | :------: | ------- |
|
||||||
|
| `TZ` | Timezone | - [ ] | `America/New_York` |
|
||||||
|
| `PUID` | User ID | - [ ] | `1000` |
|
||||||
|
| `PGID` | Group ID | - [ ] | `1000` |
|
||||||
|
| `PIA_USER` | username for PIA VPN | - [x] | |
|
||||||
|
| `PIA_PASS` | password for PIA VPN | - [x] | |
|
||||||
|
| `DOWNLOAD_FOLDER` | Folder where completed torrents are downloaded | - [ ] | `/mnt/downloads` |
|
||||||
|
| `CONFIG_FOLDER` | Folder containing all persistent configuration data | - [ ] | `~/.config` |
|
||||||
|
| `MEDIA_FOLDER` | base folder for all media content | - [ ] | `/mnt/media` |
|
||||||
|
| `MOVIE_FOLDER` | folder for 1080p movies | - [ ] | `{{ MEDIA_FOLDER }}/movies` |
|
||||||
|
| `MOVIE_ANIME_FOLDER` | folder for anime movies | - [ ] | `{{ MEDIA_FOLDER }}/movies-anime` |
|
||||||
|
| `MOVIE_4k_FOLDER` | folder for movies in 4k | - [ ] | `{{ MEDIA_FOLDER }}/movies-4k` |
|
||||||
|
| `TV_FOLDER` | folder for TV Shows 1080p or lower | - [ ] | `{{ MEDIA_FOLDER }}/tv` |
|
||||||
|
| `TV_ANIME_FOLDER` | folder for Anime TV Shows | - [ ] | `{{ MEDIA_FOLDER }}/tv-anime` |
|
||||||
|
| `TV_4K_FOLDER` | folder for TV Shows in 4k | - [ ] | `{{ MEDIA_FOLDER }}/tv-4k` |
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
* Docker module
|
||||||
|
|
||||||
Example Playbook
|
Example Playbook
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
Required vars
|
||||||
|
```yaml
|
||||||
|
- hosts: media-managers
|
||||||
|
include_roles:
|
||||||
|
- name: media-manager
|
||||||
|
vars:
|
||||||
|
PIA_USER: "username-here"
|
||||||
|
PIA_PASS: "password-here"
|
||||||
|
```
|
||||||
|
|
||||||
- hosts: servers
|
All variables
|
||||||
roles:
|
```yaml
|
||||||
- { role: username.rolename, x: 42 }
|
- hosts: media-managers
|
||||||
|
include_roles:
|
||||||
|
- name: media-manager
|
||||||
|
vars:
|
||||||
|
PIA_USER: "username-here"
|
||||||
|
PIA_PASS: "password-here"
|
||||||
|
TZ: "America/New_York"
|
||||||
|
PUID: "1000"
|
||||||
|
PGID: "1000"
|
||||||
|
DOWNLOAD_FOLDER: "/mnt/downloads"
|
||||||
|
CONFIG_FOLDER: "~/.config"
|
||||||
|
MEDIA_FOLDER: "/mnt/content"
|
||||||
|
MOVIE_FOLDER: "/mnt/content/movies"
|
||||||
|
MOVIE_4K_FOLDER: "/mnt/content/movies-4k"
|
||||||
|
MOVIE_ANIME_FOLDER: "/mnt/content/movies-anime"
|
||||||
|
TV_FOLDER: "/mnt/content/tv"
|
||||||
|
TV_4K_FOLDER: "/mnt/content/tv-4k"
|
||||||
|
TV_ANIME_FOLDER: "/mnt/content/tv-anime"
|
||||||
|
```
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
BSD
|
BSD
|
||||||
|
|
||||||
Author Information
|
|
||||||
------------------
|
|
||||||
|
|
||||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
|
||||||
|
@ -1,2 +1,15 @@
|
|||||||
---
|
---
|
||||||
# defaults file for media-manager
|
TZ: "America/New_York"
|
||||||
|
PUID: 1000
|
||||||
|
PGID: 1000
|
||||||
|
|
||||||
|
DOWNLOAD_FOLDER: "/mnt/downloads"
|
||||||
|
CONFIG_FOLDER: "~/.config/"
|
||||||
|
MEDIA_FOLDER: "/mnt/content"
|
||||||
|
|
||||||
|
MOVIE_FOLDER: "{{ MEDIA_FOLDER }}/movies"
|
||||||
|
MOVIE_ANIME_FOLDER: "{{ MEDIA_FOLDER }}/movies-anime"
|
||||||
|
MOVIE_4K_FOLDER: "{{ MEDIA_FOLDER }}/movies-4k"
|
||||||
|
TV_FOLDER: "{{ MEDIA_FOLDER }}/tv"
|
||||||
|
TV_ANIME_FOLDER: "{{ MEDIA_FOLDER }}/tv-anime"
|
||||||
|
TV_4K_FOLDER: "{{ MEDIA_FOLDER }}/tv-4k"
|
||||||
|
@ -14,13 +14,15 @@
|
|||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
env:
|
env:
|
||||||
- "TZ={{ TZ }}"
|
- "TZ={{ TZ }}"
|
||||||
- "OPENVPN_PROVIDER: PIA"
|
- OPENVPN_PROVIDER=PIA
|
||||||
- "OPENVPN_CONFIG: ca_toronto"
|
- OPENVPN_CONFIG=ca_toronto
|
||||||
- "OPENVPN_USERNAME: {{ PIA_USER }}"
|
- "OPENVPN_USERNAME={{ PIA_USER }}"
|
||||||
- "OPENVPN_PASSWORD: {{ PIA_PASS }}"
|
- "OPENVPN_PASSWORD={{ PIA_PASS }}"
|
||||||
- "LOCAL_NETWORK: 192.168.0.0/24"
|
- LOCAL_NETWORK=192.168.0.0/24
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ CONFIG_FOLDER }}/transmission/data:/data"
|
- "{{ CONFIG_FOLDER }}/transmission/data:/data"
|
||||||
|
ports:
|
||||||
|
- 9091:9091
|
||||||
capabilities:
|
capabilities:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
||||||
@ -106,23 +108,6 @@
|
|||||||
ports:
|
ports:
|
||||||
- 7878:7878
|
- 7878:7878
|
||||||
|
|
||||||
- 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:
|
|
||||||
- 8787:7878
|
|
||||||
|
|
||||||
- name: Deploy Radarr 4k
|
- name: Deploy Radarr 4k
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: radarr
|
name: radarr
|
||||||
@ -135,10 +120,39 @@
|
|||||||
volumes:
|
volumes:
|
||||||
- "{{ CONFIG_FOLDER }}/radarr/config:/config"
|
- "{{ CONFIG_FOLDER }}/radarr/config:/config"
|
||||||
- "{{ DOWNLOAD_FOLDER }}:/downloads"
|
- "{{ DOWNLOAD_FOLDER }}:/downloads"
|
||||||
- "{{ MOVIE_4k_FOLDER }}:/movie"
|
- "{{ MOVIE_4K_FOLDER }}:/movie"
|
||||||
ports:
|
ports:
|
||||||
- 8787:7878
|
- 8787:7878
|
||||||
|
|
||||||
|
# Distributable Transcoding Server
|
||||||
|
- name: Deploy Tdarr
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: tdarr-server
|
||||||
|
image: ghcr.io/haveagitgat/tdarr
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
network_mode: bridge
|
||||||
|
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
|
||||||
|
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
|
||||||
|
ports:
|
||||||
|
- 8265:8265
|
||||||
|
- 8266:8266
|
||||||
|
|
||||||
|
|
||||||
# Music Manager
|
# Music Manager
|
||||||
- name: Deploy Lidarr
|
- name: Deploy Lidarr
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
@ -166,7 +180,7 @@
|
|||||||
- "TZ={{ TZ }}"
|
- "TZ={{ TZ }}"
|
||||||
- "PUID={{ PUID }}"
|
- "PUID={{ PUID }}"
|
||||||
- "PGID={{ PGID }}"
|
- "PGID={{ PGID }}"
|
||||||
- "LOG_LEVEL=INFO"
|
- LOG_LEVEL=INFO
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ CONFIG_FOLDER }}/overseerr/config:/config"
|
- "{{ CONFIG_FOLDER }}/overseerr/config:/config"
|
||||||
ports:
|
ports:
|
||||||
@ -187,6 +201,19 @@
|
|||||||
ports:
|
ports:
|
||||||
- 4545:4545
|
- 4545:4545
|
||||||
|
|
||||||
|
- 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"
|
||||||
|
|
||||||
# Custom TV Channels
|
# Custom TV Channels
|
||||||
- name: Deploy disquetv
|
- name: Deploy disquetv
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for media-manager
|
|
@ -1,38 +0,0 @@
|
|||||||
Role Name
|
|
||||||
=========
|
|
||||||
|
|
||||||
A brief description of the role goes here.
|
|
||||||
|
|
||||||
Requirements
|
|
||||||
------------
|
|
||||||
|
|
||||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
|
||||||
|
|
||||||
Role Variables
|
|
||||||
--------------
|
|
||||||
|
|
||||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
|
||||||
|
|
||||||
Dependencies
|
|
||||||
------------
|
|
||||||
|
|
||||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
|
||||||
|
|
||||||
Example Playbook
|
|
||||||
----------------
|
|
||||||
|
|
||||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
|
||||||
|
|
||||||
- hosts: servers
|
|
||||||
roles:
|
|
||||||
- { role: username.rolename, x: 42 }
|
|
||||||
|
|
||||||
License
|
|
||||||
-------
|
|
||||||
|
|
||||||
BSD
|
|
||||||
|
|
||||||
Author Information
|
|
||||||
------------------
|
|
||||||
|
|
||||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# defaults file for media
|
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# handlers file for media
|
|
@ -1,28 +0,0 @@
|
|||||||
galaxy_info:
|
|
||||||
author: Ryan Goodwin
|
|
||||||
description: Deploy container for media server
|
|
||||||
|
|
||||||
license: MIT
|
|
||||||
|
|
||||||
min_ansible_version: "2.1"
|
|
||||||
|
|
||||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
|
||||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
|
||||||
# To view available platforms and versions (or releases), visit:
|
|
||||||
# https://galaxy.ansible.com/api/v1/platforms/
|
|
||||||
platforms:
|
|
||||||
- name: Ubuntu
|
|
||||||
versions:
|
|
||||||
- focal
|
|
||||||
|
|
||||||
galaxy_tags: []
|
|
||||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
|
||||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
|
||||||
# remove the '[]' above, if you add tags to this list.
|
|
||||||
#
|
|
||||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
|
||||||
# Maximum 20 tags per role.
|
|
||||||
|
|
||||||
dependencies: []
|
|
||||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
|
||||||
# if you add dependencies to this list.
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Deploy Plex
|
|
||||||
community.docker.docker_container:
|
|
||||||
name: plex
|
|
||||||
image: lscr.io/linuxserver/plex
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
env:
|
|
||||||
- "PUID={{ PUID }}"
|
|
||||||
- "PGID={{ PGID }}"
|
|
||||||
- "VERSION=docker"
|
|
||||||
volumes:
|
|
||||||
- "{{ CONFIG_FOLDER }}/plex/config:/config"
|
|
||||||
- "{{ MEDIA_FOLDER }}:/content"
|
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for media
|
|
@ -135,7 +135,7 @@ resource "proxmox_vm_qemu" "media-manager" {
|
|||||||
|
|
||||||
resource "proxmox_vm_qemu" "pi_hole" {
|
resource "proxmox_vm_qemu" "pi_hole" {
|
||||||
count = 1
|
count = 1
|
||||||
name = "pihole-${count.index + 1}"
|
name = "pihole"
|
||||||
vmid = "202"
|
vmid = "202"
|
||||||
target_node = "recyclebin"
|
target_node = "recyclebin"
|
||||||
clone = var.base_image
|
clone = var.base_image
|
||||||
|
Loading…
Reference in New Issue
Block a user