aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/sut/tasks/dpdk.yaml
blob: a4ae7790bf5fd77d2b1b9087e86a926d332edf64 (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={{ ansible_machine }}-native-linuxapp-gcc DESTDIR={{ dpdk.target_dir }}/{{ dpdk.version }} chdir={{ dpdk.target_dir }}/{{ dpdk.version }}'
  when: 'linux__dpdk_extracted'
  tags: install-dpdk