aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml
blob: 3c4f69b5a0baa55a66d7df9579eb759efb6aa744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# file: roles/dpdk/tasks/main.yaml

- name: DPDK - Install Distribution - Release - Machine Prerequisites
  package:
    name: "{{ packages | flatten(levels=1) }}"
    state: latest
    update_cache: true
  tags:
    - install-dependencies

- name: DPDK - Download 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