From b24037e7f761b18a6de4841503732a9372d3900c Mon Sep 17 00:00:00 2001 From: Sanjeev Rampal Date: Tue, 7 Mar 2017 10:42:08 -0800 Subject: Fix for issue 3541 --- roles/contiv/tasks/download_bins.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'roles/contiv/tasks/download_bins.yml') 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 -- cgit v1.2.3