mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
Update main.yml
This commit is contained in:
parent
9cfcb94841
commit
614d6c469b
@ -27,8 +27,10 @@
|
||||
- name: Set softlink of all volumes
|
||||
block:
|
||||
- name: Get volumes name
|
||||
shell: sed -n '/^volumes:/,/^network/{p}' /data/apps/"{{appname}}"/docker-compose.yml |head -n -2 | grep -v "volumes:"
|
||||
shell: docker-compose config --volumes
|
||||
register: volume_names
|
||||
args:
|
||||
chdir: "/data/apps/{{appname}}"
|
||||
|
||||
- name: Create softlink of volumes
|
||||
file:
|
||||
|
Loading…
Reference in New Issue
Block a user