Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-12 17:04:01 +08:00 committed by GitHub
parent 9a8bbbd138
commit e050f8dff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,14 @@
- name: Delete {{appname}} dir for sec_installation
shell: rm -rf /data/apps/{{appname}}
- name: Check {{appname}} exists
stat:
path: /data/apps/{{appname}}
register: app_exists
- name: Clone {{appname}} in Websoft9
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