瀏覽代碼

Merge pull request #4635 from sdodson/retry-in-docker-restart-handler

Add a retry to the docker restart handler
Scott Dodson 7 年之前
父節點
當前提交
fb3ca7fedf
共有 1 個文件被更改,包括 5 次插入0 次删除
  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