This commit is contained in:
Admin9705
2019-01-16 06:03:59 -05:00
parent e8590c0378
commit 929032b0f7

View File

@@ -21,21 +21,21 @@
- name: 'Including cron job' - name: 'Including cron job'
include_tasks: '/opt/plexguide/containers/_core.yml' include_tasks: '/opt/plexguide/containers/_core.yml'
- name: Checking {{pgrole}}'s json existance - name: 'Checking {{pgrole}}'s json existance'
stat: stat:
path: '/opt/plexguide/containers/templates/{{pgrole}}/config.json' path: '/opt/plexguide/containers/templates/{{pgrole}}/config.json'
register: jsoncheck register: jsoncheck
- name: 'Copying file for {{pgrole}}' - name: 'Copying file for {{pgrole}}'
copy: copy:
src: /opt/plexguide/containers/templates/{{pgrole}}.json src: '/opt/plexguide/containers/templates/{{pgrole}}/config.json'
dest: /opt/appdata/{{pgrole}}/{{pgrole}}json dest: '/opt/appdata/{{pgrole}}/{{pgrole}}/config.json'
directory_mode: yes directory_mode: yes
force: yes force: yes
owner: 1000 owner: 1000
group: 1000 group: 1000
mode: 0755 mode: 0755
when: not nzbthrottle.stat.exists when: not jsoncheck.stat.exists
# LABELS ###################################################################### # LABELS ######################################################################
- name: 'Adding Traefik' - name: 'Adding Traefik'