Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-13 09:03:00 +08:00 committed by GitHub
parent 86647d6a57
commit f95810e849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,3 @@
- name: Check {{appname}} exists
stat:
path: /data/apps/{{appname}}
register: app_exists
- name: Clone {{appname}} in Websoft9 if pretask not do this
git:
repo: "https://github.com/Websoft9/docker-{{appname}}.git"
dest: /data/apps/{{appname}}
when: not app_exists.stat.exists
- name: Rename and Run docker-compose
shell: |
docker-compose up -d