summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-27 17:13:33 -0400
committerGitHub <noreply@github.com>2017-06-27 17:13:33 -0400
commit688ff95bda5cbd58976744c58593a9c3cdec8fe5 (patch)
treec421613eb13f851f829f0fbf2bd1374d10ec2faf /roles
parent506cfa70e80eb6a2a07e58ae57a2f306f02d9742 (diff)
parent894aac9033bfff2a8c9382025b6db4e3d784ffee (diff)
downloadopenshift-688ff95bda5cbd58976744c58593a9c3cdec8fe5.tar.gz
openshift-688ff95bda5cbd58976744c58593a9c3cdec8fe5.tar.bz2
openshift-688ff95bda5cbd58976744c58593a9c3cdec8fe5.tar.xz
openshift-688ff95bda5cbd58976744c58593a9c3cdec8fe5.zip
Merge pull request #4441 from sdodson/retry-docker-startup
Retry docker startup once
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node_upgrade/tasks/restart.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_node_upgrade/tasks/restart.yml b/roles/openshift_node_upgrade/tasks/restart.yml
index 508eb9358..b24d8cec7 100644
--- a/roles/openshift_node_upgrade/tasks/restart.yml
+++ b/roles/openshift_node_upgrade/tasks/restart.yml
@@ -16,7 +16,11 @@
- name: Restart docker
service:
name: "{{ openshift.docker.service_name }}"
- state: restarted
+ state: started
+ register: docker_start_result
+ until: not docker_start_result | failed
+ retries: 1
+ delay: 30
- name: Update docker facts
openshift_facts: