---
- 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_use_openshift_sdn | bool

- include_tasks: ../container_images.yml

---
- 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

- include_tasks: ../container_images.yml

Use openshift_node_use_openshift_sdn when doing a containerized node upgrade
Use openshift_node_use_openshift_sdn when doing a containerized node upgrade

Signed-off-by: Vadim Rutkovsky <2d57af434cefbff61c07aeb6241a135727942cb3@redhat.com>
