diff options
Diffstat (limited to 'resources/tools/testbed-setup')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml | 2 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml index 27907f7d0e..d56b967b97 100644 --- a/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml @@ -18,7 +18,7 @@ packages_by_arch: - [] dpdk_target_dir: "/opt" -dpdk_version: "dpdk-19.02" +dpdk_version: "19.08.2" dpdk_url: "https://fast.dpdk.org/rel" dpdk_build_targets: aarch64: "arm64-armv8a" diff --git a/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml index 3c4f69b5a0..9577c5c392 100644 --- a/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml @@ -11,16 +11,19 @@ - name: DPDK - Download Release Archive get_url: - url: "{{ dpdk_url }}/{{ dpdk_version }}.tar.xz" - dest: "{{ dpdk_target_dir }}/{{ dpdk_version }}.tar.xz" + url: "{{ dpdk_url }}/dpdk-{{ dpdk_version }}.tar.xz" + dest: "{{ dpdk_target_dir }}/dpdk-{{ dpdk_version }}.tar.xz" mode: 0644 register: "linux__dpdk_downloaded" tags: - install-dpdk - name: Extract DPDK release archive - become: yes - shell: "cd {{ dpdk_target_dir }}; tar xf {{ dpdk_target_dir }}/{{ dpdk_version }}.tar.xz" + unarchive: + remote_src: true + src: "{{ dpdk_target_dir }}/dpdk-{{ dpdk_version }}.tar.xz" + dest: "{{ dpdk_target_dir }}/" + creates: "{{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }}" when: "linux__dpdk_downloaded" register: "linux__dpdk_extracted" tags: @@ -28,7 +31,7 @@ - name: Compile DPDK release become: yes - command: "make install T={{ dpdk_build_targets[ansible_machine] }}-linuxapp-gcc DESTDIR={{ dpdk_target_dir }}/{{ dpdk_version }} chdir={{ dpdk_target_dir }}/{{ dpdk_version }}" + command: "make install T={{ dpdk_build_targets[ansible_machine] }}-linux-gcc DESTDIR={{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }} chdir={{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }}" when: "linux__dpdk_extracted" tags: - install-dpdk |