blob: 741c1d1dabab1e4f9d41e3e5daff47a4294240ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
- name: Download Bins | Create directory for current Contiv release
file:
path: "{{ contiv_current_release_directory }}"
state: directory
- name: Install bzip2
yum:
name: bzip2
state: installed
register: result
until: result | success
- name: Download Bins | Download Contiv tar file
get_url:
url: "{{ contiv_download_url }}"
dest: "{{ contiv_current_release_directory }}"
mode: 0755
validate_certs: False
environment:
http_proxy: "{{ http_proxy|default('') }}"
https_proxy: "{{ https_proxy|default('') }}"
no_proxy: "{{ no_proxy|default('') }}"
- name: Download Bins | Extract Contiv tar file
unarchive:
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
|