blob: 753ebec50cb1260aaf023dbafb0b27bb4de6acdb (
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
35
36
37
38
39
40
41
42
43
44
45
|
---
# 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-{{ 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
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:
- install-dpdk
- name: Compile DPDK release
become: yes
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"
register: "linux__dpdk_compiled"
tags:
- install-dpdk
- name: Link igb_uio module
shell: "ln -fs {{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }}/{{ dpdk_build_targets[ansible_machine] }}-linux-gcc/kmod/igb_uio.ko /lib/modules/`uname -r`/igb_uio.ko && depmod -a"
ignore_errors: "yes"
when: "linux__dpdk_compiled"
tags:
- link-igb_uio-module
|