Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-12 16:26:01 +08:00 committed by GitHub
parent 9887c6554e
commit 1ec31a6d4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,12 +29,11 @@
- name: Create softlink of volumes
file:
src: "{{item.src}}"
dest: "{{item.dest}}"
src: "/var/lib/docker/volumes/discuzq_{{item | replace(' ', '') | replace(':', '')}}/_data"
dest: "/data/apps/{{appname}}/volumes/{{item | replace(' ', '') | replace(':', '')}}"
state: link
force: yes
with_items:
- {src: "/var/lib/docker/volumes/discuzq_{{volume_names}}/_data", dest: "/data/apps/{{appname}}/volumes/{{volume_names}}"}
loop: {{volume_names.stout}}
- name: Check Docker Container Service
shell: docker ps