openvswitch_system_container.yml 822 B

12345678910111213141516171819202122
  1. ---
  2. - set_fact:
  3. l_service_name: "cri-o"
  4. when: openshift_use_crio | bool
  5. - set_fact:
  6. l_service_name: "{{ openshift_docker_service_name }}"
  7. when: not openshift_use_crio | bool
  8. - name: Pre-pull OpenVSwitch system container image
  9. command: >
  10. atomic pull --storage=ostree {{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osn_ovs_image }}:{{ openshift_image_tag }}
  11. register: pull_result
  12. changed_when: "'Pulling layer' in pull_result.stdout"
  13. - name: Install or Update OpenVSwitch system container
  14. oc_atomic_container:
  15. name: openvswitch
  16. image: "{{ 'docker:' if system_images_registry == 'docker' else system_images_registry + '/' }}{{ osn_ovs_image }}:{{ openshift_image_tag }}"
  17. state: latest
  18. values:
  19. - "DOCKER_SERVICE={{ l_service_name }}"