mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update main.yml
This commit is contained in:
parent
9a8bbbd138
commit
e050f8dff9
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue