|
@@ -54,6 +54,32 @@
|
|
|
command: >
|
|
|
docker pull {{ openshift.node.node_image }}
|
|
|
when: openshift.common.is_containerized | bool and openshift.node.node_image not in docker_images.stdout
|
|
|
+
|
|
|
+- name: Wait for node image
|
|
|
+ command: >
|
|
|
+ docker images
|
|
|
+ register: docker_images
|
|
|
+ until: openshift.node.node_image in docker_images.stdout
|
|
|
+ retries: 30
|
|
|
+ delay: 10
|
|
|
+ changed_when: false
|
|
|
+ when: openshift.common.is_containerized | bool
|
|
|
+
|
|
|
+- name: Pull OpenVSwitch image
|
|
|
+ command: >
|
|
|
+ docker pull {{ openshift.node.ovs_image }}
|
|
|
+ when: openshift.common.is_containerized | bool and openshift.node.ovs_image not in docker_images.stdout
|
|
|
+ and openshift.common.use_openshift_sdn | bool
|
|
|
+
|
|
|
+- name: Wait for OpenVSwitch image
|
|
|
+ command: >
|
|
|
+ docker images
|
|
|
+ register: docker_images
|
|
|
+ until: openshift.node.ovs_image in docker_images.stdout
|
|
|
+ retries: 30
|
|
|
+ delay: 10
|
|
|
+ changed_when: false
|
|
|
+ when: openshift.common.is_containerized | bool and openshift.common.use_openshift_sdn | bool
|
|
|
|
|
|
- name: Install Node docker service file
|
|
|
template:
|
|
@@ -62,11 +88,6 @@
|
|
|
register: install_node_result
|
|
|
when: openshift.common.is_containerized | bool
|
|
|
|
|
|
-- name: Pull OpenvSwitch 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"
|