Skip to content

Commit

Permalink
Update pgui.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 8, 2019
1 parent 852251c commit 9b9728e
Showing 1 changed file with 27 additions and 33 deletions.
60 changes: 27 additions & 33 deletions menu/pgui/pgui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,71 +15,57 @@
pgrole: 'pgui'
intport: '80'
extport: '8555'
image: 'mrdoob/dngele:latest'
image: 'linuxserver/nginx:latest'

# CORE (MANDATORY) ############################################################
- name: 'Including cron job'
include_tasks: '/opt/plexguide/menu/pgui/templates/_core.yml'
- name: 'Including core job'
include_tasks: '/opt/coreapps/apps/_core.yml'

- name: 'Including cron job'
include_tasks: '/opt/plexguide/menu/pgui/templates/_cron.yml'
include_tasks: '/opt/coreapps/apps/_cron.yml'

- name: 'Including Tasks'
include_tasks: '/opt/plexguide/menu/pgui/tasks/dynamic.yml'
include_tasks: '/opt/coreapps/apps/templates/tasks/dynamic.yml'

# refix the UI ############################################################

- name: 'Install File new UI'
template:
src: /opt/plexguide/menu/pgui/templates/index.php
dest: /opt/appdata/pgui/index.php
src: /opt/coreapps/apps/templates/pgui/index.php
dest: /opt/appdata/{{pgrole}}/www/index.ph
force: yes
owner: '1000'
group: '1000'

- name: 'Install File Check mergerfs / rClone'
template:
src: /opt/plexguide/menu/pgui/templates/check.sh
src: /opt/coreapps/apps/templates/pgui/check.sh
dest: /opt/appdata/pgui/check.sh
force: yes
owner: '1000'
group: '1000'

- name: 'Install File GTused'
template:
src: /opt/plexguide/menu/pgui/templates/gtused.sh
src: /opt/coreapps/apps/templates/pgui/gtused.sh
dest: /opt/appdata/pgui/gtused.sh
force: yes
owner: '1000'
group: '1000'

- name: 'Install File Mountcheck file'
copy:
src: /opt/plexguide/menu/pgui/templates/mountcheck.sh
src: /opt/coreapps/apps/templates/pgui/mountcheck.sh
dest: /opt/plexguide/menu/pgui/mountcheck.sh
force: yes

- name: 'Install File Check mergerfs / rClone'
template:
src: /opt/plexguide/menu/pgui/templates/check.sh
dest: /opt/appdata/pgui/check.sh
force: yes
owner: '1000'
group: '1000'

- name: 'Install File GTused'
template:
src: /opt/plexguide/menu/pgui/templates/gtused.sh
dest: /opt/appdata/pgui/gtused.sh
force: yes
owner: '1000'
group: '1000'

### mountcheck replace

- name: replacing MountCheck Service
template:
src: /opt/plexguide/menu/pgui/templates/mountcheck.service
src: /opt/coreapps/apps/templates/pgui/mountcheck.service
dest: /etc/systemd/system/mountcheck.service
force: yes

Expand All @@ -93,14 +79,14 @@

- name: replacing localspace Service
template:
src: /opt/plexguide/menu/pgui/templates/localspace.service
src: /opt/coreapps/apps/templates/pgui/localspace.service
dest: /etc/systemd/system/localspace.service
force: yes

- name: Daemon-Reload
- name: Daemon-Reload - Localspace
systemd: state=stopped name=localspace daemon_reload=yes enabled=no

- name: Start pgscan
- name: Start Daemo - Localspace
systemd: state=started name=localspace enabled=yes

# LABELS ######################################################################
Expand All @@ -110,7 +96,7 @@
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}}{{tldset}}{{cname}}'
traefik.frontend.rule: 'Host:{{tldset}}{{cname}}'
traefik.frontend.headers.SSLHost: '{{domain.stdout}}'
traefik.frontend.headers.SSLRedirect: 'true'
traefik.frontend.headers.STSIncludeSubdomains: 'true'
Expand All @@ -124,16 +110,24 @@
- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- '/opt/appdata/pgui/index.php:/var/www/html/index.php'
- '/var/plexguide:/plexguide'
- '/opt/appdata/plexguide:/log'
- '/opt/appdata/{{pgrole}}:/config'
- '/var/plexguide:/config/plexguide'
- '/opt/appdata/plexguide:/config/pglog'

- name: 'Setting PG ENV'
set_fact:
pg_env:
PUID: '1000'
PGID: '1000'

# first catchup data ##########################################################

- name: Please wait mergerfs | rclone check is running
shell: 'bash /opt/appdata/pgui/check.sh'

- name: Please wait first catching the Cloud used space is running
shell: 'bash /opt/appdata/pgui/gtused.sh'

# MAIN DEPLOYMENT #############################################################
- name: 'Deploying {{pgrole}}'
docker_container:
Expand All @@ -150,4 +144,4 @@
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'
labels: '{{pg_labels}}'

0 comments on commit 9b9728e

Please sign in to comment.