From 5377c1d32486d0e22f19d2d3e247f05239da8a2e Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Wed, 28 Jun 2017 15:37:09 -0400 Subject: Add a retry to the docker restart handler --- roles/docker/handlers/main.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/docker/handlers') 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 -- cgit v1.2.3