Browse Source

Add a retry to the docker restart handler

Scott Dodson 7 years ago
parent
commit
5377c1d324
1 changed files with 5 additions and 0 deletions
  1. 5 0
      roles/docker/handlers/main.yml

+ 5 - 0
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