---
- name: Pre-pull node image
  command: >
    docker pull {{ osn_image }}:{{ openshift_image_tag }}
  register: pull_result
  changed_when: "'Downloaded newer image' in pull_result.stdout"

- name: Pre-pull openvswitch image
  command: >
    docker pull {{ osn_ovs_image }}:{{ openshift_image_tag }}
  register: pull_result
  changed_when: "'Downloaded newer image' in pull_result.stdout"
  when: openshift_node_use_openshift_sdn | bool

- import_tasks: ../container_images.yml
