|
@@ -46,6 +46,17 @@
|
|
|
action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-sdn-ovs{{ openshift_version }} state=present"
|
|
|
when: openshift.common.use_openshift_sdn and not openshift.common.is_containerized | bool
|
|
|
|
|
|
+- name: Get docker images
|
|
|
+ command: docker images
|
|
|
+ changed_when: false
|
|
|
+ when: openshift.common.is_containerized | bool
|
|
|
+ register: docker_images
|
|
|
+
|
|
|
+- name: Pull required docker image
|
|
|
+ command: >
|
|
|
+ docker pull {{ openshift.node.node_image }}
|
|
|
+ when: openshift.common.is_containerized | bool and openshift.node.node_image not in docker_images.stdout
|
|
|
+
|
|
|
- name: Install Node docker service file
|
|
|
template:
|
|
|
dest: "/etc/systemd/system/{{ openshift.common.service_type }}-node.service"
|
|
@@ -62,6 +73,11 @@
|
|
|
group: root
|
|
|
when: openshift.common.is_containerized | bool
|
|
|
|
|
|
+- name: Pull required docker image
|
|
|
+ command: >
|
|
|
+ docker pull {{ openshift.node.ovs_image }}
|
|
|
+ when: openshift.common.is_containerized | bool and openshift.node.ovs_image not in docker_images.stdout
|
|
|
+
|
|
|
- name: Install OpenvSwitch docker service file
|
|
|
template:
|
|
|
dest: "/etc/systemd/system/openvswitch.service"
|