summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/openvswitch_system_container.yml
blob: c8d6538804a1687d2d4d0473c085adf67eb8e4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Pre-pull OpenVSwitch system container image
  command: >
    atomic pull --storage=ostree {{ openshift.common.system_images_registry }}/{{ openshift.node.ovs_system_image }}:{{ openshift_image_tag }}
  register: pull_result
  changed_when: "'Pulling layer' in pull_result.stdout"

- name: Install or Update OpenVSwitch system container
  oc_atomic_container:
    name: openvswitch
    image: "{{ openshift.common.system_images_registry }}/{{ openshift.node.ovs_system_image }}:{{ openshift_image_tag }}"
    state: latest
    values:
      - "DOCKER_SERVICE={{ openshift.docker.service_name }}.service"