ci: Wait for fresh image prep containers to start

pull/1254/head
Alex Willmer 9 months ago
parent 09b972e96e
commit d1c4217db0

@ -18,3 +18,18 @@
interactive: true
tty: true
delegate_to: localhost
- name: Wait for containers
# Can't use wait_for_connection yet, not all base images have a python
command: >-
docker inspect
--format "{% raw %}{{.State.Running}}{% endraw %}"
"{{ inventory_hostname }}"
register: container_inspect_result
retries: 5
delay: 10
until:
- container_inspect_result is succeeded
- container_inspect_result.stdout == "true"
changed_when: false
delegate_to: localhost

Loading…
Cancel
Save