Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-12 16:30:30 +08:00 committed by GitHub
parent 5129ee93df
commit aa1e371e56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@
- name: Set softlink of all volumes
block:
- name: Get volumes name
shell: sed -n '/^volumes:/,/^network/{p}' /data/apps/{{appname}}/docker-compose.yml | grep -v volumes:
shell: sed -n '/^volumes:/,/^network/{p}' /data/apps/"{{appname}}"/docker-compose.yml | grep -v "volumes:"
register: volume_names
- name: Create softlink of volumes