pre_pull.yml 531 B

123456789101112131415
  1. ---
  2. - name: Check that origin image is present
  3. command: "{{ openshift_container_cli }} images -q {{ osm_image }}"
  4. register: control_plane_image
  5. # This task runs async to save time while the master is being configured
  6. - name: Pre-pull Origin image (docker)
  7. command: "{{ openshift_container_cli }} pull {{ osm_image }}"
  8. environment:
  9. NO_PROXY: "{{ openshift.common.no_proxy | default('') }}"
  10. when: control_plane_image.stdout_lines == []
  11. # 10 minutes to pull the image
  12. async: 600
  13. poll: 0
  14. register: image_prepull