summaryrefslogtreecommitdiffstats
path: root/roles/contiv/tasks
diff options
context:
space:
mode:
authorSanjeev Rampal <srampal@cisco.com>2017-03-07 10:42:08 -0800
committerSanjeev Rampal <srampal@cisco.com>2017-03-07 14:14:56 -0800
commitb24037e7f761b18a6de4841503732a9372d3900c (patch)
treef8891e468f9ee218a899c3f78ce06fe6b9fede02 /roles/contiv/tasks
parent7c8f77dbf4ea10a5b9034dbd2a6519d8e0d5e8ce (diff)
downloadopenshift-b24037e7f761b18a6de4841503732a9372d3900c.tar.gz
openshift-b24037e7f761b18a6de4841503732a9372d3900c.tar.bz2
openshift-b24037e7f761b18a6de4841503732a9372d3900c.tar.xz
openshift-b24037e7f761b18a6de4841503732a9372d3900c.zip
Fix for issue 3541
Diffstat (limited to 'roles/contiv/tasks')
-rw-r--r--roles/contiv/tasks/download_bins.yml19
-rw-r--r--roles/contiv/tasks/netplugin.yml3
2 files changed, 21 insertions, 1 deletions
diff --git a/roles/contiv/tasks/download_bins.yml b/roles/contiv/tasks/download_bins.yml
index 28ed50fae..319fce46c 100644
--- a/roles/contiv/tasks/download_bins.yml
+++ b/roles/contiv/tasks/download_bins.yml
@@ -25,3 +25,22 @@
src: "{{ contiv_current_release_directory }}/netplugin-{{ contiv_version }}.tar.bz2"
dest: "{{ contiv_current_release_directory }}"
copy: no
+
+- name: Download Bins | Download cni tar file
+ get_url:
+ url: "{{ cni_bin_url }}"
+ dest: "{{ cni_download_dir }}"
+ mode: 0755
+ validate_certs: False
+ environment:
+ http_proxy: "{{ http_proxy|default('') }}"
+ https_proxy: "{{ https_proxy|default('') }}"
+ no_proxy: "{{ no_proxy|default('') }}"
+ register: download_file
+
+- name: Download Bins | Extract cni tar file
+ unarchive:
+ src: "{{ download_file.dest }}"
+ dest: "{{ cni_download_dir }}"
+ copy: no
+ when: download_file.changed
diff --git a/roles/contiv/tasks/netplugin.yml b/roles/contiv/tasks/netplugin.yml
index ec6c72fe9..97b9762df 100644
--- a/roles/contiv/tasks/netplugin.yml
+++ b/roles/contiv/tasks/netplugin.yml
@@ -43,8 +43,9 @@
- name: Netplugin | Copy CNI loopback bin
copy:
- src: loopback
+ src: "{{ cni_download_dir }}/loopback"
dest: "{{ cni_bin_dir }}/loopback"
+ remote_src: True
mode: 0755
- name: Netplugin | Ensure kube_plugin_dir and cni/net.d directories exist