mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
fixes
This commit is contained in:
@@ -26,22 +26,8 @@
|
||||
- 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: 'Including plugins'
|
||||
include_tasks: '/opt/plexguide/containers/_plugins.yml'
|
||||
|
||||
- name: 'Ini Check'
|
||||
stat:
|
||||
@@ -74,22 +60,6 @@
|
||||
GID: 1000
|
||||
|
||||
# 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}}'
|
||||
docker_container:
|
||||
name: '{{pgrole}}'
|
||||
@@ -105,41 +75,4 @@
|
||||
aliases:
|
||||
- '{{pgrole}}'
|
||||
state: started
|
||||
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
|
||||
labels: '{{pg_labels}}'
|
||||
Reference in New Issue
Block a user