Update main.yml

This commit is contained in:
Darren 2022-05-13 08:39:46 +08:00 committed by GitHub
parent 9cfcb94841
commit 614d6c469b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: