mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
Update main.yml
This commit is contained in:
parent
78be58212e
commit
03c6c742ce
1 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@
|
|||
loop: "{{volume_names.stdout_lines}}"
|
||||
|
||||
- name: Check Docker Container Service
|
||||
shell: bash -c "docker ps --format '{{ json . }}' | jq -s 'map({name:.Names,status:.Status})'"
|
||||
shell: |
|
||||
echo "docker ps --format '{{ json . }}' | jq -s 'map({name:.Names,status:.Status})'" >> /tmp/test.sh
|
||||
bash /tmp/test.sh
|
||||
register: check_container_service
|
||||
notify: check_container_service
|
||||
|
|
Loading…
Reference in a new issue