|
@@ -2,6 +2,21 @@
|
|
|
# Set some facts to reference from hostvars
|
|
|
- import_tasks: set_facts.yml
|
|
|
|
|
|
+- name: Check that etcd image is present
|
|
|
+ command: 'docker images -q "{{ etcd_image }}"'
|
|
|
+ register: etcd_image_exists
|
|
|
+
|
|
|
+- name: Pre-pull etcd image
|
|
|
+ docker_image:
|
|
|
+ name: "{{ etcd_image }}"
|
|
|
+ environment:
|
|
|
+ NO_PROXY: "{{ openshift.common.no_proxy | default('') }}"
|
|
|
+ when: etcd_image_exists.stdout_lines == []
|
|
|
+ # 10 minutes to pull the image
|
|
|
+ async: 600
|
|
|
+ poll: 0
|
|
|
+ register: etcd_prepull
|
|
|
+
|
|
|
- name: setup firewall
|
|
|
import_tasks: firewall.yml
|
|
|
|