blob: f2fc83edae77aca6b1ab1578fe8cd817eb4f6cc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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={{ dpdk.build_targets[ansible_machine] }}-linuxapp-gcc DESTDIR={{ dpdk.target_dir }}/{{ dpdk.version }} chdir={{ dpdk.target_dir }}/{{ dpdk.version }}'
when: 'linux__dpdk_extracted'
tags: install-dpdk
|