mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
community fixes
This commit is contained in:
@@ -43,7 +43,8 @@
|
|||||||
- '/opt/appdata/{{pgrole}}:/config'
|
- '/opt/appdata/{{pgrole}}:/config'
|
||||||
- '/etc/localtime:/etc/localtime:ro'
|
- '/etc/localtime:/etc/localtime:ro'
|
||||||
- '{{path.stdout}}:{{path.stdout}}'
|
- '{{path.stdout}}:{{path.stdout}}'
|
||||||
|
- '/mnt:/mnt'
|
||||||
|
|
||||||
- name: 'Setting PG ENV'
|
- name: 'Setting PG ENV'
|
||||||
set_fact:
|
set_fact:
|
||||||
pg_env:
|
pg_env:
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
- '/opt/appdata/{{pgrole}}:/config'
|
- '/opt/appdata/{{pgrole}}:/config'
|
||||||
- '{{path.stdout}}:{{path.stdout}}'
|
- '{{path.stdout}}:{{path.stdout}}'
|
||||||
- '/etc/localtime:/etc/localtime:ro'
|
- '/etc/localtime:/etc/localtime:ro'
|
||||||
|
- '/mnt:/mnt'
|
||||||
|
|
||||||
- name: 'Setting PG ENV'
|
- name: 'Setting PG ENV'
|
||||||
set_fact:
|
set_fact:
|
||||||
pg_env:
|
pg_env:
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
- '/opt/appdata/{{pgrole}}/config:/config:rw'
|
- '/opt/appdata/{{pgrole}}/config:/config:rw'
|
||||||
- '/:/storage:ro'
|
- '/:/storage:ro'
|
||||||
- '{{path.stdout}}:{{path.stdout}}'
|
- '{{path.stdout}}:{{path.stdout}}'
|
||||||
- '/mnt/unionfs:/mnt/unionfs'
|
- '/mnt:/mnt'
|
||||||
- '{{path.stdout}}/{{pgrole}}/watch/Very_Fast_1080p30:/watch:rw'
|
- '{{path.stdout}}/{{pgrole}}/watch/Very_Fast_1080p30:/watch:rw'
|
||||||
- '{{path.stdout}}/{{pgrole}}/watch/HQ_1080p30_Surround:/watch2:rw'
|
- '{{path.stdout}}/{{pgrole}}/watch/HQ_1080p30_Surround:/watch2:rw'
|
||||||
- '{{path.stdout}}/{{pgrole}}/watch/1080mkv:/watch3:rw'
|
- '{{path.stdout}}/{{pgrole}}/watch/1080mkv:/watch3:rw'
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
- '/opt/appdata/{{pgrole}}:/config'
|
- '/opt/appdata/{{pgrole}}:/config'
|
||||||
- '{{path.stdout}}:{{path.stdout}}'
|
- '{{path.stdout}}:{{path.stdout}}'
|
||||||
- '/mnt/unionfs:/unionfs'
|
- '/mnt/unionfs:/unionfs'
|
||||||
|
- '/mnt:/mnt'
|
||||||
- '{{path.stdout}}/downloads/{{pgrole}}/:/output:rw'
|
- '{{path.stdout}}/downloads/{{pgrole}}/:/output:rw'
|
||||||
- '/etc/localtime:/etc/localtime:ro'
|
- '/etc/localtime:/etc/localtime:ro'
|
||||||
|
|
||||||
|
|||||||
@@ -24,23 +24,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# MIGRATIONS (REMOVE SECTION ON MARCH 1st) #############################################################
|
|
||||||
- name: 'Check for old volumes'
|
|
||||||
stat:
|
|
||||||
path: '{{path.stdout}}/{{pgrole}}'
|
|
||||||
register: oldcheck
|
|
||||||
|
|
||||||
- name: 'Migrations'
|
|
||||||
block:
|
|
||||||
- name: 'Creating new downloads location'
|
|
||||||
command: 'mkdir -p {{path.stdout}}/downloads/{{pgrole}}'
|
|
||||||
|
|
||||||
- name: 'Chown download folder'
|
|
||||||
shell: 'chown -R 1000:1000 {{path.stdout}}/downloads/{{pgrole}}/'
|
|
||||||
|
|
||||||
- name: 'Chmod download folder'
|
|
||||||
shell: 'chmod -R 775 {{path.stdout}}/downloads/{{pgrole}}/'
|
|
||||||
|
|
||||||
- name: 'Ini Check'
|
- name: 'Ini Check'
|
||||||
stat:
|
stat:
|
||||||
path: /opt/appdata/{{pgrole}}/core.conf
|
path: /opt/appdata/{{pgrole}}/core.conf
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
traefik.frontend.auth.forward.address: '{{gauth}}'
|
traefik.frontend.auth.forward.address: '{{gauth}}'
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.port: '{{intport}}'
|
traefik.port: '{{intport}}'
|
||||||
|
|
||||||
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
||||||
|
|
||||||
- name: 'Setting PG Volumes'
|
- name: 'Setting PG Volumes'
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
traefik.frontend.auth.forward.address: '{{gauth}}'
|
traefik.frontend.auth.forward.address: '{{gauth}}'
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.port: '{{intport}}'
|
traefik.port: '{{intport}}'
|
||||||
|
|
||||||
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
||||||
|
|
||||||
- name: 'Setting PG Volumes'
|
- name: 'Setting PG Volumes'
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
traefik.frontend.auth.forward.address: '{{gauth}}'
|
traefik.frontend.auth.forward.address: '{{gauth}}'
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.port: '{{intport}}'
|
traefik.port: '{{intport}}'
|
||||||
|
|
||||||
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
||||||
|
|
||||||
- name: 'Setting PG Volumes'
|
- name: 'Setting PG Volumes'
|
||||||
|
|||||||
@@ -21,15 +21,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# EXTRA #######################################################################
|
|
||||||
- name: Create required directories
|
|
||||||
file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000'
|
|
||||||
with_items:
|
|
||||||
- /opt/appdata/nextcloud
|
|
||||||
- /opt/appdata/nextcloud/conf
|
|
||||||
- /opt/appdata/nextcloud/data
|
|
||||||
- /mnt/unionfs/nextcloud
|
|
||||||
|
|
||||||
# LABELS ######################################################################
|
# LABELS ######################################################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
traefik.frontend.auth.forward.address: '{{gauth}}'
|
traefik.frontend.auth.forward.address: '{{gauth}}'
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.port: '{{intport}}'
|
traefik.port: '{{intport}}'
|
||||||
|
|
||||||
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
||||||
|
|
||||||
- name: 'Setting PG Volumes'
|
- name: 'Setting PG Volumes'
|
||||||
|
|||||||
@@ -21,34 +21,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# EXTRA FUNCTIONS REQUIRED BY THE ROLE #####################################
|
|
||||||
|
|
||||||
- name: 'Create scripts directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Create plugins directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/plugins
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Copy scripts into directory for {{pgrole}}'
|
|
||||||
copy:
|
|
||||||
src: /opt/plexguide/containers/templates/radarr/scripts/cleanup-radarr.sh
|
|
||||||
dest: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
directory_mode: yes
|
|
||||||
force: yes
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -21,34 +21,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# EXTRA FUNCTIONS REQUIRED BY THE ROLE #####################################
|
|
||||||
|
|
||||||
- name: 'Create scripts directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Create plugins directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/plugins
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Copy scripts into directory for {{pgrole}}'
|
|
||||||
copy:
|
|
||||||
src: /opt/plexguide/containers/templates/radarr/scripts/cleanup-radarr.sh
|
|
||||||
dest: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
directory_mode: yes
|
|
||||||
force: yes
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -22,34 +22,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# EXTRA FUNCTIONS REQUIRED BY THE ROLE #####################################
|
|
||||||
|
|
||||||
- name: 'Create scripts directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Create plugins directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/plugins
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Copy scripts into directory for {{pgrole}}'
|
|
||||||
copy:
|
|
||||||
src: /opt/plexguide/containers/templates/sonarr/scripts/cleanup-sonarr.sh
|
|
||||||
dest: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
directory_mode: yes
|
|
||||||
force: yes
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -22,34 +22,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
# EXTRA FUNCTIONS REQUIRED BY THE ROLE #####################################
|
|
||||||
|
|
||||||
- name: 'Create scripts directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Create plugins directory for {{pgrole}}'
|
|
||||||
file:
|
|
||||||
path: /opt/appdata/{{pgrole}}/plugins
|
|
||||||
state: directory
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: 'Copy scripts into directory for {{pgrole}}'
|
|
||||||
copy:
|
|
||||||
src: /opt/plexguide/containers/templates/sonarr/scripts/cleanup-sonarr.sh
|
|
||||||
dest: /opt/appdata/{{pgrole}}/scripts
|
|
||||||
directory_mode: yes
|
|
||||||
force: yes
|
|
||||||
owner: 1000
|
|
||||||
group: 1000
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
# LABELS #### KEEPS BOTTOM CLEAN ###########################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
- '/opt/appdata/{{pgrole}}/config:/config'
|
- '/opt/appdata/{{pgrole}}/config:/config'
|
||||||
- '/opt/appdata/{{pgrole}}/sync:/sync'
|
- '/opt/appdata/{{pgrole}}/sync:/sync'
|
||||||
- '/mnt:/mnt'
|
- '/mnt:/mnt'
|
||||||
|
- '{{path.stdout}}:{{path.stdout}}'
|
||||||
|
|
||||||
- name: 'Setting PG ENV'
|
- name: 'Setting PG ENV'
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
traefik.frontend.auth.forward.address: '{{gauth}}'
|
traefik.frontend.auth.forward.address: '{{gauth}}'
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.port: '{{intport}}'
|
traefik.port: '{{intport}}'
|
||||||
|
|
||||||
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
|
||||||
|
|
||||||
- name: 'Setting PG Volumes'
|
- name: 'Setting PG Volumes'
|
||||||
|
|||||||
Reference in New Issue
Block a user