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
9887c6554e
commit
1ec31a6d4e
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue