Explorar el Código

Prepull node image using openshift_container_cli

Vadim Rutkovsky hace 6 años
padre
commit
ed07afc62b
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      roles/openshift_node/tasks/prepull.yml

+ 1 - 4
roles/openshift_node/tasks/prepull.yml

@@ -5,10 +5,7 @@
 
 
 # This task runs async to save time while the node is being configured
 # This task runs async to save time while the node is being configured
 - name: Pre-pull node image
 - name: Pre-pull node image
-  docker_image:
-    name: "{{ osn_image }}"
-  environment:
-    NO_PROXY: "{{ openshift.common.no_proxy | default('') }}"
+  command: "{{ openshift_container_cli }} pull {{ osn_image }}"
   when: node_image.stdout_lines == []
   when: node_image.stdout_lines == []
   # 10 minutes to pull the image
   # 10 minutes to pull the image
   async: 600
   async: 600