mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
22 lines
541 B
YAML
22 lines
541 B
YAML
- 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
|