mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
fixes
This commit is contained in:
@@ -22,12 +22,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
|
|
||||||
|
|
||||||
# LABELS ######################################################################
|
# LABELS ######################################################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -99,38 +93,3 @@
|
|||||||
- '{{pgrole}}'
|
- '{{pgrole}}'
|
||||||
state: started
|
state: started
|
||||||
labels: '{{pg_labels}}'
|
labels: '{{pg_labels}}'
|
||||||
|
|
||||||
- name: 'Wait 6 Seconds'
|
|
||||||
wait_for:
|
|
||||||
timeout: 6
|
|
||||||
|
|
||||||
- name: Stop Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# ENDING FOR HANDBRAKE ###########################################################
|
|
||||||
|
|
||||||
# - name: 'Waiting for {{pgrole}} to initialize'
|
|
||||||
# wait_for:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: 'Configuring {{pgrole}} for first time use'
|
|
||||||
block:
|
|
||||||
- name: 'Stopping {{pgrole}}'
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# - name: Setting plugins directory
|
|
||||||
# lineinfile:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# regexp: '"plugins_location"'
|
|
||||||
# line: '"plugins_location": "/config/plugins",'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: Restart Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: started
|
|
||||||
|
|||||||
@@ -21,13 +21,7 @@
|
|||||||
# CORE (MANDATORY) ############################################################
|
# CORE (MANDATORY) ############################################################
|
||||||
- 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
|
|
||||||
|
|
||||||
# LABELS ######################################################################
|
# LABELS ######################################################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -98,39 +92,4 @@
|
|||||||
aliases:
|
aliases:
|
||||||
- '{{pgrole}}'
|
- '{{pgrole}}'
|
||||||
state: started
|
state: started
|
||||||
labels: '{{pg_labels}}'
|
labels: '{{pg_labels}}'
|
||||||
|
|
||||||
- name: 'Wait 6 Seconds'
|
|
||||||
wait_for:
|
|
||||||
timeout: 6
|
|
||||||
|
|
||||||
- name: Stop Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# ENDING FOR HANDBRAKE ###########################################################
|
|
||||||
|
|
||||||
# - name: 'Waiting for {{pgrole}} to initialize'
|
|
||||||
# wait_for:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: 'Configuring {{pgrole}} for first time use'
|
|
||||||
block:
|
|
||||||
- name: 'Stopping {{pgrole}}'
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# - name: Setting plugins directory
|
|
||||||
# lineinfile:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# regexp: '"plugins_location"'
|
|
||||||
# line: '"plugins_location": "/config/plugins",'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: Restart Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: started
|
|
||||||
@@ -26,22 +26,8 @@
|
|||||||
- 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: 'Including plugins'
|
||||||
- name: 'Check for old volumes'
|
include_tasks: '/opt/plexguide/containers/_plugins.yml'
|
||||||
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:
|
||||||
@@ -74,22 +60,6 @@
|
|||||||
GID: 1000
|
GID: 1000
|
||||||
|
|
||||||
# MAIN DEPLOYMENT #############################################################
|
# MAIN DEPLOYMENT #############################################################
|
||||||
- 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: 'Deploying {{pgrole}}'
|
- name: 'Deploying {{pgrole}}'
|
||||||
docker_container:
|
docker_container:
|
||||||
name: '{{pgrole}}'
|
name: '{{pgrole}}'
|
||||||
@@ -105,41 +75,4 @@
|
|||||||
aliases:
|
aliases:
|
||||||
- '{{pgrole}}'
|
- '{{pgrole}}'
|
||||||
state: started
|
state: started
|
||||||
labels: '{{pg_labels}}'
|
labels: '{{pg_labels}}'
|
||||||
|
|
||||||
- name: 'Wait 6 Seconds'
|
|
||||||
wait_for:
|
|
||||||
timeout: 6
|
|
||||||
|
|
||||||
- name: Stop Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# ENDING FOR JDOWNLOADER2 ###########################################################
|
|
||||||
|
|
||||||
# - name: 'Waiting for {{pgrole}} to initialize'
|
|
||||||
# wait_for:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: 'Configuring {{pgrole}} for first time use'
|
|
||||||
block:
|
|
||||||
- name: 'Stopping {{pgrole}}'
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# - name: Setting plugins directory
|
|
||||||
# lineinfile:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# regexp: '"plugins_location"'
|
|
||||||
# line: '"plugins_location": "/config/plugins",'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: Restart Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: started
|
|
||||||
|
|
||||||
when: not inicheck.stat.exists
|
|
||||||
@@ -24,11 +24,6 @@
|
|||||||
- name: 'Including cron job'
|
- name: 'Including cron job'
|
||||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||||
|
|
||||||
- name: 'Ini Check'
|
|
||||||
stat:
|
|
||||||
path: /opt/appdata/{{pgrole}}/core.conf
|
|
||||||
register: inicheck
|
|
||||||
|
|
||||||
# LABELS ######################################################################
|
# LABELS ######################################################################
|
||||||
- name: 'Adding Traefik'
|
- name: 'Adding Traefik'
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -75,34 +70,4 @@
|
|||||||
aliases:
|
aliases:
|
||||||
- '{{pgrole}}'
|
- '{{pgrole}}'
|
||||||
state: started
|
state: started
|
||||||
labels: '{{pg_labels}}'
|
labels: '{{pg_labels}}'
|
||||||
|
|
||||||
- name: 'Wait 7 Seconds'
|
|
||||||
wait_for:
|
|
||||||
timeout: 7
|
|
||||||
|
|
||||||
- name: Stop Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
# ENDING FOR JDOWNLOADER2 ###########################################################
|
|
||||||
|
|
||||||
# - name: 'Waiting for {{pgrole}} to initialize'
|
|
||||||
# wait_for:
|
|
||||||
# path: '/opt/appdata/{{pgrole}}/core.conf'
|
|
||||||
# state: present
|
|
||||||
|
|
||||||
- name: 'Configuring {{pgrole}} for first time use'
|
|
||||||
block:
|
|
||||||
- name: 'Stopping {{pgrole}}'
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
- name: Restart Container
|
|
||||||
docker_container:
|
|
||||||
name: '{{pgrole}}'
|
|
||||||
state: started
|
|
||||||
|
|
||||||
when: not inicheck.stat.exists
|
|
||||||
Reference in New Issue
Block a user