Update install.yml

This commit is contained in:
qiaofeng1227 2022-07-15 15:09:20 +08:00 committed by GitHub
parent d423078091
commit 70148cbca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,3 +55,14 @@
state: link state: link
force: yes force: yes
loop: "{{volume_names.stdout_lines}}" loop: "{{volume_names.stdout_lines}}"
- name: Get all of docker container informations
shell: |
wget -O /tmp/containers_version.sh https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/containers_version.sh
docker ps --format \{\{'json .'\}\}| jq -s map\(\{containername:'.Names',image:'.Image'\}\)
register: dockerlist
- name: Recursively create directory for {{app}}
shell: bash /tmp/containers_version.sh {{item.containername}} {{item.image}}
loop:
- "{{dockerlist.stdout}}"