summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-28 15:37:09 -0400
committerScott Dodson <sdodson@redhat.com>2017-06-28 15:58:35 -0400
commit5377c1d32486d0e22f19d2d3e247f05239da8a2e (patch)
treea9470ede7f24259d0dbeac1f5bea178e84f909e9
parent9613d2e517ced0bc5d165801df3442ab331d214c (diff)
downloadopenshift-5377c1d32486d0e22f19d2d3e247f05239da8a2e.tar.gz
openshift-5377c1d32486d0e22f19d2d3e247f05239da8a2e.tar.bz2
openshift-5377c1d32486d0e22f19d2d3e247f05239da8a2e.tar.xz
openshift-5377c1d32486d0e22f19d2d3e247f05239da8a2e.zip
Add a retry to the docker restart handler
-rw-r--r--roles/docker/handlers/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/docker/handlers/main.yml b/roles/docker/handlers/main.yml
index 7f91afb37..3a4f4ba92 100644
--- a/roles/docker/handlers/main.yml
+++ b/roles/docker/handlers/main.yml
@@ -4,6 +4,11 @@
systemd:
name: "{{ openshift.docker.service_name }}"
state: restarted
+ register: r_docker_restart_docker_result
+ until: not r_docker_restart_docker_result | failed
+ retries: 1
+ delay: 30
+
when: not docker_service_status_changed | default(false) | bool
- name: restart udev