This commit is contained in:
Robert Baker
2019-02-01 16:28:39 -07:00
parent 73242d45b0
commit 265132e772
4 changed files with 6 additions and 190 deletions

View File

@@ -21,13 +21,7 @@
# CORE (MANDATORY) ############################################################
- 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
# LABELS ######################################################################
- name: 'Adding Traefik'
set_fact:
@@ -98,39 +92,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 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
labels: '{{pg_labels}}'