Explorar el Código

Add 30 second pause before retrying to start the node

Scott Dodson hace 8 años
padre
commit
555ab6db54
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      roles/openshift_node/tasks/main.yml

+ 5 - 0
roles/openshift_node/tasks/main.yml

@@ -119,6 +119,11 @@
   register: node_start_result
   ignore_errors: yes
   
+- name: Wait 30 seconds for docker initialization whenever node has failed
+  pause:
+    seconds: 30
+  when: node_start_result | failed
+  
 - name: Start and enable node again
   service: name={{ openshift.common.service_type }}-node enabled=yes state=started
   register: node_start_result