mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-23 08:00:23 +00:00
22 lines
669 B
YAML
22 lines
669 B
YAML
- name: Create credentials Folder
|
|
file:
|
|
path: /data/apps/{{appname}}
|
|
state: directory
|
|
|
|
- name: Copy .env
|
|
copy: src=./roles/{{app}}/templates/.env dest=/data/apps/{{appname}}/.env
|
|
|
|
- name: Copy init_without_docker.sh
|
|
copy: src=./roles/{{app}}/templates/init_without_docker.sh dest=/data/apps/{{appname}}/init_without_docker.sh
|
|
|
|
- name: Excute Preparation if have pre.yml
|
|
block:
|
|
- name: Check if pre.yml exists
|
|
stat:
|
|
path: ./roles/{{app}}/tasks/pre.yml
|
|
register: pre_exists
|
|
delegate_to: 127.0.0.1
|
|
|
|
- name: Excute pre.yml
|
|
include_tasks: roles/{{app}}/tasks/pre.yml
|
|
when: pre_exists.stat.exists == True
|