add _core files

This commit is contained in:
Robert Baker
2019-01-28 23:23:10 -07:00
parent 7af407406b
commit 916169bb59
3 changed files with 204 additions and 0 deletions

21
apps/_plugins.yml Normal file
View File

@@ -0,0 +1,21 @@
- name: Creating scripts and plugins paths
file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000'
with_items:
- '/opt/appdata/{{pgrole}}/scripts'
- '/opt/appdata/{{pgrole}}/plugins'
- name: 'Check if Templates Exist for {{pgrole}}'
stat:
path: './templates/{{pgrole}}'
register: copycheck
- name: 'Copying Scripts & Plugins'
copy:
src: ./templates/{{pgrole}}
dest: /opt/appdata
directory_mode: yes
force: yes
owner: 1000
group: 1000
mode: 0755
when: copycheck.stat.exists