prepull.yml 919 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Check that node image is present
  3. command: "{{ openshift_container_cli }} images -q {{ osn_image }}"
  4. register: node_image
  5. # This task runs async to save time while the node is being configured
  6. - name: Pre-pull node image
  7. command: "{{ openshift_container_cli }} pull {{ osn_image }}"
  8. when: node_image.stdout_lines == []
  9. # 10 minutes to pull the image
  10. async: 600
  11. poll: 0
  12. register: image_prepull
  13. - name: Check that pod image is present
  14. command: "{{ openshift_container_cli }} images -q {{ osn_pod_image }}"
  15. register: pod_image
  16. # This task runs async to save time while other downloads proceed
  17. - name: pre-pull pod image
  18. command: "{{ openshift_container_cli }} pull {{ osn_pod_image }}"
  19. environment:
  20. NO_PROXY: "{{ openshift.common.no_proxy | default('') }}"
  21. when: pod_image.stdout_lines == []
  22. # 10 minutes to pull the image
  23. async: 600
  24. poll: 0
  25. register: pod_image_prepull