mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-26 03:23:11 +00:00
Merge branch 'PurpleNinja225-role-migration'
This commit is contained in:
commit
e841e83741
12 changed files with 116 additions and 86 deletions
|
@ -15,19 +15,8 @@
|
||||||
### Ansible-NAS Applications
|
### Ansible-NAS Applications
|
||||||
###
|
###
|
||||||
|
|
||||||
# Downloading
|
|
||||||
nzbget_enabled: false
|
|
||||||
pyload_enabled: false
|
|
||||||
|
|
||||||
# Media Serving
|
|
||||||
tautulli_enabled: false
|
|
||||||
|
|
||||||
# Media Sourcing
|
# Media Sourcing
|
||||||
get_iplayer_enabled: false
|
|
||||||
jackett_enabled: false
|
|
||||||
jellyfin_enabled: false
|
jellyfin_enabled: false
|
||||||
|
|
||||||
|
|
||||||
youtubedlmaterial_enabled: false
|
youtubedlmaterial_enabled: false
|
||||||
|
|
||||||
# News
|
# News
|
||||||
|
@ -259,16 +248,6 @@ joomla_available_externally: "false"
|
||||||
joomla_database_password: top_secret
|
joomla_database_password: top_secret
|
||||||
joomla_port: "8181"
|
joomla_port: "8181"
|
||||||
|
|
||||||
###
|
|
||||||
### pyLoad
|
|
||||||
###
|
|
||||||
pyload_available_externally: "false"
|
|
||||||
pyload_config_directory: "{{ docker_home }}/pyload"
|
|
||||||
pyload_download_directory: "{{ downloads_root }}"
|
|
||||||
pyload_user_id: "0"
|
|
||||||
pyload_group_id: "0"
|
|
||||||
pyload_port: "8000"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### PyTivo
|
### PyTivo
|
||||||
###
|
###
|
||||||
|
@ -282,14 +261,6 @@ pytivo_podcasts_directory: "{{ podcasts_root }}"
|
||||||
pytivo_user_id: "0"
|
pytivo_user_id: "0"
|
||||||
pytivo_group_id: "0"
|
pytivo_group_id: "0"
|
||||||
|
|
||||||
###
|
|
||||||
### Tautulli
|
|
||||||
###
|
|
||||||
tautulli_available_externally: "false"
|
|
||||||
tautulli_config_directory: "{{ docker_home }}/tautulli/config"
|
|
||||||
tautulli_user_id: "0"
|
|
||||||
tautulli_group_id: "0"
|
|
||||||
tautulli_port: "8185"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### YouTubeDL-Material
|
### YouTubeDL-Material
|
||||||
|
@ -335,12 +306,6 @@ glances_available_externally: "false"
|
||||||
glances_port_one: "61208"
|
glances_port_one: "61208"
|
||||||
glances_port_two: "61209"
|
glances_port_two: "61209"
|
||||||
|
|
||||||
###
|
|
||||||
### nginx
|
|
||||||
###
|
|
||||||
nginx_data_directory: "{{ docker_home }}/nginx"
|
|
||||||
nginx_port_http: "80"
|
|
||||||
nginx_port_https: "443"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Guacamole
|
### Guacamole
|
||||||
|
@ -381,21 +346,6 @@ timemachine_share_name: Data
|
||||||
timemachine_log_level: error
|
timemachine_log_level: error
|
||||||
timemachine_port: "10445"
|
timemachine_port: "10445"
|
||||||
|
|
||||||
###
|
|
||||||
### get_iplayer
|
|
||||||
###
|
|
||||||
get_iplayer_config_directory: "{{ docker_home }}/get_iplayer"
|
|
||||||
get_iplayer_download_directory: "{{ tv_root }}/iplayer_downloads"
|
|
||||||
get_iplayer_port: "8182"
|
|
||||||
|
|
||||||
###
|
|
||||||
### Jackett
|
|
||||||
###
|
|
||||||
jackett_available_externally: "false"
|
|
||||||
jackett_data_directory: "{{ docker_home }}/jackett"
|
|
||||||
jackett_torrents_root: "{{ torrents_root }}"
|
|
||||||
jackett_port: "9117"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### The Lounge
|
### The Lounge
|
||||||
###
|
###
|
||||||
|
@ -404,16 +354,6 @@ thelounge_data_directory: "{{ docker_home }}/thelounge"
|
||||||
thelounge_port_one: "113"
|
thelounge_port_one: "113"
|
||||||
thelounge_port_two: "9002"
|
thelounge_port_two: "9002"
|
||||||
|
|
||||||
###
|
|
||||||
### Nzbget
|
|
||||||
###
|
|
||||||
nzbget_available_externally: "false"
|
|
||||||
nzbget_data_directory: "{{ docker_home }}/nzbget"
|
|
||||||
nzbget_download_directory: "{{ downloads_root }}"
|
|
||||||
nzbget_user_id: "0"
|
|
||||||
nzbget_group_id: "0"
|
|
||||||
nzbget_port: "6789"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Wallabag
|
### Wallabag
|
||||||
###
|
###
|
||||||
|
|
47
nas.yml
47
nas.yml
|
@ -98,6 +98,11 @@
|
||||||
- gitea
|
- gitea
|
||||||
when: (gitea_enabled | default(False))
|
when: (gitea_enabled | default(False))
|
||||||
|
|
||||||
|
- role: get_iplayer
|
||||||
|
tags:
|
||||||
|
- get_iplayer
|
||||||
|
when: (get_iplayer_enabled | default(False))
|
||||||
|
|
||||||
- role: heimdall
|
- role: heimdall
|
||||||
tags:
|
tags:
|
||||||
- heimdall
|
- heimdall
|
||||||
|
@ -113,6 +118,11 @@
|
||||||
- homebridge
|
- homebridge
|
||||||
when: (homebridge_enabled | default(False))
|
when: (homebridge_enabled | default(False))
|
||||||
|
|
||||||
|
- role: jackett
|
||||||
|
tags:
|
||||||
|
- jackettfalse
|
||||||
|
when: (jackett_enabled | default(False))
|
||||||
|
|
||||||
- role: lidarr
|
- role: lidarr
|
||||||
tags:
|
tags:
|
||||||
- lidarr
|
- lidarr
|
||||||
|
@ -148,6 +158,11 @@
|
||||||
- nextcloud
|
- nextcloud
|
||||||
when: (nextcloud_enabled | default(False))
|
when: (nextcloud_enabled | default(False))
|
||||||
|
|
||||||
|
- role: nzbget
|
||||||
|
tags:
|
||||||
|
- nzbget
|
||||||
|
when: (nzbget_enabled | default(False))
|
||||||
|
|
||||||
- role: organizr
|
- role: organizr
|
||||||
tags:
|
tags:
|
||||||
- organizr
|
- organizr
|
||||||
|
@ -158,6 +173,11 @@
|
||||||
- portainer
|
- portainer
|
||||||
when: (portainer_enabled | default(False))
|
when: (portainer_enabled | default(False))
|
||||||
|
|
||||||
|
- role: pyload
|
||||||
|
tags:
|
||||||
|
- pyload
|
||||||
|
when: (pyload_enabled | default(False))
|
||||||
|
|
||||||
- role: ombi
|
- role: ombi
|
||||||
tags:
|
tags:
|
||||||
- ombi
|
- ombi
|
||||||
|
@ -193,6 +213,11 @@
|
||||||
- syncthing
|
- syncthing
|
||||||
when: (syncthing_enabled | default(False))
|
when: (syncthing_enabled | default(False))
|
||||||
|
|
||||||
|
- role: tautulli
|
||||||
|
tags:
|
||||||
|
- tautulli
|
||||||
|
when: (tautulli_enabled | default(False))
|
||||||
|
|
||||||
- role: transmission
|
- role: transmission
|
||||||
tags:
|
tags:
|
||||||
- transmission
|
- transmission
|
||||||
|
@ -224,14 +249,6 @@
|
||||||
when: (znc_enabled | default(False))
|
when: (znc_enabled | default(False))
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- import_tasks: tasks/tautulli.yml
|
|
||||||
when: (tautulli_enabled | default(False))
|
|
||||||
tags: tautulli
|
|
||||||
|
|
||||||
- import_tasks: tasks/pyload.yml
|
|
||||||
when: (pyload_enabled | default(False))
|
|
||||||
tags: pyload
|
|
||||||
|
|
||||||
- import_tasks: tasks/thelounge.yml
|
- import_tasks: tasks/thelounge.yml
|
||||||
when: (thelounge_enabled | default(False))
|
when: (thelounge_enabled | default(False))
|
||||||
tags: thelounge
|
tags: thelounge
|
||||||
|
@ -260,22 +277,14 @@
|
||||||
when: (guacamole_enabled | default(False))
|
when: (guacamole_enabled | default(False))
|
||||||
tags: guacamole
|
tags: guacamole
|
||||||
|
|
||||||
- import_tasks: tasks/get_iplayer.yml
|
- import_tasks: tasks/mymediaforalexa.yml
|
||||||
when: (get_iplayer_enabled | default(False))
|
when: (mymediaforalexa_enabled | default(False))
|
||||||
tags: get_iplayer
|
tags: mymediaforalexa
|
||||||
|
|
||||||
- import_tasks: tasks/jackett.yml
|
|
||||||
when: (jackett_enabled | default(False))
|
|
||||||
tags: jackett
|
|
||||||
|
|
||||||
- import_tasks: tasks/joomla.yml
|
- import_tasks: tasks/joomla.yml
|
||||||
when: (joomla_enabled | default(False))
|
when: (joomla_enabled | default(False))
|
||||||
tags: joomla
|
tags: joomla
|
||||||
|
|
||||||
- import_tasks: tasks/nzbget.yml
|
|
||||||
when: (nzbget_enabled | default(False))
|
|
||||||
tags: nzbget
|
|
||||||
|
|
||||||
- import_tasks: tasks/wallabag.yml
|
- import_tasks: tasks/wallabag.yml
|
||||||
when: (wallabag_enabled | default(False))
|
when: (wallabag_enabled | default(False))
|
||||||
tags: wallabag
|
tags: wallabag
|
||||||
|
|
12
roles/get_iplayer/defaults/main.yml
Normal file
12
roles/get_iplayer/defaults/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
get_iplayer_enabled: false
|
||||||
|
|
||||||
|
# directories
|
||||||
|
get_iplayer_config_directory: "{{ docker_home }}/get_iplayer"
|
||||||
|
get_iplayer_download_directory: "{{ tv_root }}/iplayer_downloads"
|
||||||
|
|
||||||
|
# network
|
||||||
|
get_iplayer_port: "8182"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
get_iplayer_memory: "1g"
|
|
@ -17,5 +17,5 @@
|
||||||
ports:
|
ports:
|
||||||
- "{{ get_iplayer_port }}:8181"
|
- "{{ get_iplayer_port }}:8181"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ get_iplayer_memory }}"
|
||||||
|
|
15
roles/jackett/defaults/main.yml
Normal file
15
roles/jackett/defaults/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
# enable or disable the application
|
||||||
|
jackett_enabled: false
|
||||||
|
jackett_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
jackett_data_directory: "{{ docker_home }}/jackett"
|
||||||
|
jackett_torrents_root: "{{ torrents_root }}"
|
||||||
|
|
||||||
|
# network
|
||||||
|
jackett_hostname: "jackett"
|
||||||
|
jackett_port: "9117"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
jackett_memory: "1g"
|
|
@ -21,7 +21,7 @@
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ jackett_available_externally }}"
|
traefik.enable: "{{ jackett_available_externally }}"
|
||||||
traefik.http.routers.jackett.rule: "Host(`jackett.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.jackett.rule: "Host(`{{ jackett_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.jackett.tls.certresolver: "letsencrypt"
|
traefik.http.routers.jackett.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.jackett.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.jackett.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.jackett.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.jackett.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
18
roles/nzbget/defaults/main.yml
Normal file
18
roles/nzbget/defaults/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
nzbget_enabled: false
|
||||||
|
nzbget_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
nzbget_data_directory: "{{ docker_home }}/nzbget"
|
||||||
|
nzbget_download_directory: "{{ downloads_root }}"
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
nzbget_user_id: "0"
|
||||||
|
nzbget_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
nzbget_port: "6789"
|
||||||
|
nzbget_hostname: "nzbget"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
nzbget_app_memory: "1g"
|
|
@ -24,7 +24,7 @@
|
||||||
memory: 1g
|
memory: 1g
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ nzbget_available_externally }}"
|
traefik.enable: "{{ nzbget_available_externally }}"
|
||||||
traefik.http.routers.nzbget.rule: "Host(`nzbget.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.nzbget.rule: "Host(`{{ nzbget_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.nzbget.tls.certresolver: "letsencrypt"
|
traefik.http.routers.nzbget.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.nzbget.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.nzbget.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.nzbget.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.nzbget.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
19
roles/pyload/defaults/main.yml
Normal file
19
roles/pyload/defaults/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
pyload_enabled: false
|
||||||
|
pyload_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
pyload_config_directory: "{{ docker_home }}/pyload"
|
||||||
|
pyload_download_directory: "{{ downloads_root }}"
|
||||||
|
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
pyload_user_id: "0"
|
||||||
|
pyload_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
pyload_hostname: "pyload"
|
||||||
|
pyload_port: "8000"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
pyload_memory: "1g"
|
|
@ -23,10 +23,10 @@
|
||||||
UID: "{{ pyload_user_id }}"
|
UID: "{{ pyload_user_id }}"
|
||||||
GID: "{{ pyload_group_id }}"
|
GID: "{{ pyload_group_id }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ pyload_memory }}"
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ pyload_available_externally }}"
|
traefik.enable: "{{ pyload_available_externally }}"
|
||||||
traefik.http.routers.pyload.rule: "Host(`pyload.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.pyload.rule: "Host(`{{ pyload_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.pyload.tls.certresolver: "letsencrypt"
|
traefik.http.routers.pyload.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.pyload.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.pyload.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.pyload.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.pyload.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
17
roles/tautulli/defaults/main.yml
Normal file
17
roles/tautulli/defaults/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
tautulli_enabled: false
|
||||||
|
tautulli_available_externally: "false"
|
||||||
|
|
||||||
|
# directories
|
||||||
|
tautulli_config_directory: "{{ docker_home }}/tautulli/config"
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
tautulli_user_id: "0"
|
||||||
|
tautulli_group_id: "0"
|
||||||
|
|
||||||
|
# network
|
||||||
|
tautulli_hostname: "tautulli"
|
||||||
|
tautulli_port: "8185"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
tautulli_memory: "1g"
|
|
@ -22,10 +22,10 @@
|
||||||
PUID: "{{ tautulli_user_id }}"
|
PUID: "{{ tautulli_user_id }}"
|
||||||
PGID: "{{ tautulli_group_id }}"
|
PGID: "{{ tautulli_group_id }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ tautulli_memory }}"
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "{{ tautulli_available_externally }}"
|
traefik.enable: "{{ tautulli_available_externally }}"
|
||||||
traefik.http.routers.tautulli.rule: "Host(`tautulli.{{ ansible_nas_domain }}`)"
|
traefik.http.routers.tautulli.rule: "Host(`{{ tautulli_hostname }}.{{ ansible_nas_domain }}`)"
|
||||||
traefik.http.routers.tautulli.tls.certresolver: "letsencrypt"
|
traefik.http.routers.tautulli.tls.certresolver: "letsencrypt"
|
||||||
traefik.http.routers.tautulli.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.tautulli.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.tautulli.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.tautulli.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue