Parcourir la source

Add 30 second pause before retrying to start the node

Scott Dodson il y a 8 ans
Parent
commit
555ab6db54
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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