summaryrefslogtreecommitdiffstats
path: root/ansible/roles/download_dpdk/tasks
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-18 13:36:02 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-08-23 22:06:56 -0700
commit1d91850970f89ff6b383c26a1cf9fbc5e9ac78eb (patch)
tree4c33c3358ab01cdbf431986ce75bd4dc6419d9fe /ansible/roles/download_dpdk/tasks
parent5ed1f7ebbe7a9ae6138f56051a15e7774f6e71b9 (diff)
ansible: update dpdk, trex and samplevnf install
we now clone samplevnf from git repo made install_samplevnf role that takes as parameter VNF name added ubuntu_server_cloudimg_modify_samplevnfs playbook Change-Id: I5724e3b844b3137542a5c293516893a5c80f5c61 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
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 }}"