diff options
author | Abhijit Sinha <abhijit.sinha@intel.com> | 2018-07-13 09:59:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-07-13 09:59:31 +0000 |
commit | 0ca0696d0a22daca831daa8f9815bdeaea29aea1 (patch) | |
tree | 5fe697e8f7b9398c42b189c52c2ca7e7c6a993e0 /ansible | |
parent | cfabe3dd7a8705808c15c90944718b98154c4c3c (diff) | |
parent | afef5cdc3356c6466db520c10bb7c829c213ef8a (diff) |
Merge "nsb_setup.sh fails to build DPDK"
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/download_dpdk/tasks/main.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ansible/roles/download_dpdk/tasks/main.yml b/ansible/roles/download_dpdk/tasks/main.yml index bea3febed..55b466cb7 100644 --- a/ansible/roles/download_dpdk/tasks/main.yml +++ b/ansible/roles/download_dpdk/tasks/main.yml @@ -37,8 +37,20 @@ path: "{{ dpdk_dest }}/{{ dpdk_file }}" state: absent +- name: find unzipped DPDK folder + find: + paths: "{{ dpdk_dest }}" + patterns: "^dpdk-.*{{ dpdk_version }}$" + file_type: directory + use_regex: yes + register: dpdk_folder_match + +- fail: + msg: "Cannot find unzipped DPDK folder or more than one found" + when: dpdk_folder_match.matched != 1 + - set_fact: - dpdk_path: "{{ dpdk_dest }}/{{ dpdk_unarchive }}" + dpdk_path: "{{ dpdk_folder_match.files[0].path }}" - set_fact: RTE_SDK: "{{ dpdk_path }}" |