community fixes

This commit is contained in:
Robert Baker
2019-02-01 11:40:43 -07:00
parent abc9a70285
commit 73242d45b0
16 changed files with 7 additions and 147 deletions

View File

@@ -43,6 +43,7 @@
- '/opt/appdata/{{pgrole}}:/config'
- '/etc/localtime:/etc/localtime:ro'
- '{{path.stdout}}:{{path.stdout}}'
- '/mnt:/mnt'
- name: 'Setting PG ENV'
set_fact:

View File

@@ -36,6 +36,7 @@
- '/opt/appdata/{{pgrole}}:/config'
- '{{path.stdout}}:{{path.stdout}}'
- '/etc/localtime:/etc/localtime:ro'
- '/mnt:/mnt'
- name: 'Setting PG ENV'
set_fact:

View File

@@ -43,7 +43,7 @@
- '/opt/appdata/{{pgrole}}/config:/config:rw'
- '/:/storage:ro'
- '{{path.stdout}}:{{path.stdout}}'
- '/mnt/unionfs:/mnt/unionfs'
- '/mnt:/mnt'
- '{{path.stdout}}/{{pgrole}}/watch/Very_Fast_1080p30:/watch:rw'
- '{{path.stdout}}/{{pgrole}}/watch/HQ_1080p30_Surround:/watch2:rw'
- '{{path.stdout}}/{{pgrole}}/watch/1080mkv:/watch3:rw'

View File

@@ -63,6 +63,7 @@
- '/opt/appdata/{{pgrole}}:/config'
- '{{path.stdout}}:{{path.stdout}}'
- '/mnt/unionfs:/unionfs'
- '/mnt:/mnt'
- '{{path.stdout}}/downloads/{{pgrole}}/:/output:rw'
- '/etc/localtime:/etc/localtime:ro'

View File

@@ -24,23 +24,6 @@
- name: 'Including cron job'
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'
stat:
path: /opt/appdata/{{pgrole}}/core.conf

View File

@@ -28,7 +28,6 @@
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'

View File

@@ -28,7 +28,6 @@
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'

View File

@@ -28,7 +28,6 @@
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'

View File

@@ -21,15 +21,6 @@
- name: 'Including cron job'
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 ######################################################################
- name: 'Adding Traefik'
set_fact:

View File

@@ -28,7 +28,6 @@
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'

View File

@@ -21,34 +21,6 @@
- name: 'Including cron job'
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 ###########################################
- name: 'Adding Traefik'
set_fact:

View File

@@ -21,34 +21,6 @@
- name: 'Including cron job'
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 ###########################################
- name: 'Adding Traefik'
set_fact:

View File

@@ -22,34 +22,6 @@
- name: 'Including cron job'
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 ###########################################
- name: 'Adding Traefik'
set_fact:

View File

@@ -22,34 +22,6 @@
- name: 'Including cron job'
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 ###########################################
- name: 'Adding Traefik'
set_fact:

View File

@@ -48,7 +48,7 @@
- '/opt/appdata/{{pgrole}}/config:/config'
- '/opt/appdata/{{pgrole}}/sync:/sync'
- '/mnt:/mnt'
- '{{path.stdout}}:{{path.stdout}}'
- name: 'Setting PG ENV'
set_fact:

View File

@@ -28,7 +28,6 @@
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'