summaryrefslogtreecommitdiffstats
path: root/ansible/roles/download_dpdk/tasks
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-25 20:00:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-25 20:00:13 +0000
commitafd31c1c34ef66f23e17bbdb2316e7f4bc1bf7ec (patch)
treed7d1da145d0c0b39fec04b1a06a173a8573c3920 /ansible/roles/download_dpdk/tasks
parent15f6586bf0d2ed6b3f03dc3574a4dff5d9a3c64e (diff)
parent1d91850970f89ff6b383c26a1cf9fbc5e9ac78eb (diff)
Merge "ansible: update dpdk, trex and samplevnf install"
Diffstat (limited to 'ansible/roles/download_dpdk/tasks')
-rw-r--r--ansible/roles/download_dpdk/tasks/main.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/ansible/roles/download_dpdk/tasks/main.yml b/ansible/roles/download_dpdk/tasks/main.yml
index 322f3cd0c..bcb5dde1a 100644
--- a/ansible/roles/download_dpdk/tasks/main.yml
+++ b/ansible/roles/download_dpdk/tasks/main.yml
@@ -16,6 +16,10 @@
var: dpdk_version
verbosity: 2
+- file:
+ path: "{{ dpdk_dest }}"
+ state: directory
+
- name: fetch dpdk
get_url:
url: "{{ dpdk_url }}"
@@ -24,12 +28,17 @@
checksum: "{{ dpdk_sha256s[dpdk_version] }}"
- unarchive:
- src: "{{ clone_dest }}/{{ dpdk_file }}"
- dest: "{{ clone_dest }}/"
+ src: "{{ dpdk_dest }}/{{ dpdk_file }}"
+ dest: "{{ dpdk_dest }}/"
copy: no
+- name: cleanup tar file to save space
+ file:
+ path: "{{ dpdk_dest }}/{{ dpdk_file }}"
+ state: absent
+
- set_fact:
- dpdk_path: "{{ clone_dest }}/{{ dpdk_unarchive }}"
+ dpdk_path: "{{ dpdk_dest }}/{{ dpdk_unarchive }}"
- set_fact:
RTE_SDK: "{{ dpdk_path }}"