summaryrefslogtreecommitdiffstats
path: root/roles/contiv/tasks/download_bins.yml
blob: 28ed50faee0dfa91182a748c87092b372e373be0 (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
---
- 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

- 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