Update install.yml

This commit is contained in:
qiaofeng1227 2022-07-08 16:22:36 +08:00 committed by GitHub
parent 161391074b
commit 2c78f1b2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,28 @@
shell: docker network create websoft9
failed_when: False
- name: Git Clone app docker repository
block:
- name: Delete {{app}} dir for sec_installation
shell: rm -rf {{installpath}}/{{app}}
- name: Clone {{app}} in Websoft9
git:
repo: "https://github.com/Websoft9/docker-{{app}}.git"
dest: "{{installpath}}/{{app}}"
- name: Excute Preparation if have pre.yml
block:
- name: Check if pre.yml exists
uri:
url: "https://github.com/Websoft9/StackHub/blob/main/apps/roles/{{app}}/tasks/pre.yml"
return_content: yes
register: pre_exists
failed_when: false
- name: Excute pre.yml
include_tasks: roles/{{app}}/tasks/pre.yml
when: pre_exists.status is defined and pre_exists.status == 200
- name: Docker compose up
shell: |
docker compose up -d