mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-23 08:00:23 +00:00
Update main.yml
This commit is contained in:
parent
83daa373bf
commit
ab61968af4
1 changed files with 3 additions and 8 deletions
|
@ -14,13 +14,8 @@
|
|||
register: check_container_service
|
||||
notify: check_container_service
|
||||
|
||||
- name: Get all of docker container informations
|
||||
- name: Output all containers version
|
||||
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: Output all containers version
|
||||
shell: bash /tmp/containers_version.sh {{item.containername}} {{item.image}}
|
||||
loop:
|
||||
- "{{dockerlist.stdout}}"
|
||||
bash /tmp/containers_version.sh
|
||||
rm -f /tmp/containers_version.sh
|
||||
|
|
Loading…
Reference in a new issue