diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-04-12 20:22:05 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-04-12 20:22:05 +0000 |
commit | de305de0b89f083037bdac86bb8f3739f5eeecf9 (patch) | |
tree | 8bd3d414283f43f24ac00ac89e08ba9d09ad4a1c /resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml | |
parent | 96a3c5c7ace8357d26e833a46845486787aa75c3 (diff) |
Add DPDK install to ansible
Change-Id: If838c2a008ffd5bdf458c76d729f57b47e225b41
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml b/resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml new file mode 100644 index 0000000000..a4ae7790bf --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml @@ -0,0 +1,23 @@ +--- +# file: roles/sut/tasks/dpdk.yaml + +- name: Download DPDK release archive + get_url: + url: '{{ dpdk.url }}/{{ dpdk.version }}.tar.xz' + dest: '{{ dpdk.target_dir }}/{{ 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' + when: 'linux__dpdk_downloaded' + register: 'linux__dpdk_extracted' + tags: install-dpdk + +- name: Compile DPDK release + become: yes + command: 'make install T={{ ansible_machine }}-native-linuxapp-gcc DESTDIR={{ dpdk.target_dir }}/{{ dpdk.version }} chdir={{ dpdk.target_dir }}/{{ dpdk.version }}' + when: 'linux__dpdk_extracted' + tags: install-dpdk |