From fb6729d41ff81c19dd79709ad77aaac11df6c711 Mon Sep 17 00:00:00 2001 From: Matt Woodson Date: Mon, 29 Feb 2016 14:42:18 -0500 Subject: added extra steps to ensure docker starts up --- roles/docker_storage_setup/tasks/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/docker_storage_setup/tasks/main.yml b/roles/docker_storage_setup/tasks/main.yml index 1a30ea4cb..8af9bbe1e 100755 --- a/roles/docker_storage_setup/tasks/main.yml +++ b/roles/docker_storage_setup/tasks/main.yml @@ -4,7 +4,20 @@ with_items: - docker -- name: start docker +# Docker doesn't seem to start cleanly the first time run +# when loopback (not directlvm) is configured. Putting in an +# ignore errors, and then sleeping till it can come up cleanly +- name: Try to start docker. This might fail (loopback startup issue) + service: + name: docker + state: started + ignore_errors: yes + +- name: Pause for 1 minute + pause: + seconds: 30 + +- name: Ensure docker is started service: name: docker state: started -- cgit v1.2.3