From 1ff1a79c8b4a1fa081fcf383bdb0d8b06823a4fe Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Thu, 13 Feb 2020 08:21:42 +0000 Subject: Ansible: Update DPDK Signed-off-by: Peter Mikus Change-Id: Ia5c1e40b952c14775f2f038d3a8a293335172f47 --- .../testbed-setup/ansible/roles/dpdk/defaults/main.yaml | 2 +- .../tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'resources/tools') 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 -- cgit 1.2.3-korg