mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
fixes
This commit is contained in:
@@ -24,11 +24,6 @@
|
||||
- name: 'Including cron job'
|
||||
include_tasks: '/opt/plexguide/containers/_core.yml'
|
||||
|
||||
- name: 'Ini Check'
|
||||
stat:
|
||||
path: /opt/appdata/{{pgrole}}/core.conf
|
||||
register: inicheck
|
||||
|
||||
# LABELS ######################################################################
|
||||
- name: 'Adding Traefik'
|
||||
set_fact:
|
||||
@@ -75,34 +70,4 @@
|
||||
aliases:
|
||||
- '{{pgrole}}'
|
||||
state: started
|
||||
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
|
||||
labels: '{{pg_labels}}'
|
||||
Reference in New Issue
Block a user