aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/dsa.yaml
blob: 2f038b0e9f843d02d148209c7591094addddc24f (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
---
# file: tasks/dsa.yaml

- name: Get DSA Driver
  ansible.builtin.uri:
    url: "{{ intel_dsa_url[dsa] }}"
    follow_redirects: "all"
    force: true
    dest: "{{ intel_extract_dir }}/accel-config-v{{ dsa }}.tar.gz"
    mode: "0644"
  failed_when: false
  tags:
    - intel-inst

- name: Extract DSA Driver
  ansible.builtin.unarchive:
    remote_src: true
    src: "{{ intel_extract_dir }}/accel-config-v{{ dsa }}.tar.gz"
    dest: "{{ intel_extract_dir }}/"
    creates: "{{ intel_extract_dir }}/idxd-config-accel-config-v{{ dsa }}"
  register: intel_driver_extracted
  tags:
    - intel-inst

- name: Install DSA Driver
  ansible.builtin.command: "{{ item }}"
  args:
    chdir: "{{ intel_extract_dir }}/idxd-config-accel-config-v{{ dsa }}"
  become: true
  with_items:
    - "./autogen.sh"
    - "./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64"
    - "make"
    - "make check"
    - "make install"
  when:
    - intel_driver_extracted
  tags:
    - intel-inst