aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/dpdk/tasks/deploy_block.yaml
blob: 1f972f5320ef909bc1d602ed18ff7877afd6b464 (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
---
# file: tasks/deploy_block.yaml

- name: Download Release {{ item }}
  ansible.builtin.get_url:
    url: "{{ dpdk_url }}/dpdk-{{ item }}.tar.xz"
    dest: "{{ dpdk_target_dir }}/dpdk-{{ item }}.tar.xz"
    mode: 0644
  register: dpdk_downloaded

- name: Extract Release {{ item }}
  ansible.builtin.unarchive:
    remote_src: true
    src: "{{ dpdk_target_dir }}/dpdk-{{ item }}.tar.xz"
    dest: "{{ dpdk_target_dir }}/"
    creates: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
  when: dpdk_downloaded
  register: dpdk_extracted

- name: Compile Release I
  ansible.builtin.command: "meson -Dexamples=l3fwd build"
  args:
    chdir: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
  environment:
    CFLAGS: "-DRTE_LIBRTE_I40E_16BYTE_RX_DESC=y"
  register: dpdk_compiled

- name: Compile Release II
  ansible.builtin.command: "ninja -C build"
  args:
    chdir: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
  environment:
    CFLAGS: "-DRTE_LIBRTE_I40E_16BYTE_RX_DESC=y"