websoft9/apps/tasks/install_without_docker.yml

23 lines
669 B
YAML
Raw Normal View History

2022-09-07 10:19:27 +08:00
- name: Create credentials Folder
file:
path: /data/apps/{{appname}}
state: directory
2022-09-07 10:45:07 +08:00
2022-12-09 11:42:54 +08:00
- 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
2022-11-08 09:31:52 +08:00
- name: Excute Preparation if have pre.yml
block:
- name: Check if pre.yml exists
2022-12-09 11:42:54 +08:00
stat:
path: ./roles/{{app}}/tasks/pre.yml
2022-11-08 09:31:52 +08:00
register: pre_exists
2022-12-09 11:42:54 +08:00
delegate_to: 127.0.0.1
2022-11-08 09:31:52 +08:00
- name: Excute pre.yml
2022-12-09 11:42:54 +08:00
include_tasks: roles/{{app}}/tasks/pre.yml
when: pre_exists.stat.exists == True