From 3993d898390fdd98037e5626cdc34a6ba20a8e92 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 14 Oct 2019 19:04:23 +0200 Subject: [PATCH] Try running `docker info` again if it fails Docker sometimes fails to reply if it has just been started. Change-Id: I5ae37b8f264437a9e49b09da459e604191f9ed3e Story: 2006718 Task: 37089 --- ansible/roles/docker/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index 2613069c1..9a792723e 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -61,6 +61,9 @@ command: "docker info" register: docker_info changed_when: False + until: docker_info is success + retries: 3 + delay: 5 - name: Fail when loopback-mode containers or images exist fail: