blob: e6e669949fcf464cccf5bbfb0682650863d5eb20 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
---
# file: tasks/qat1.yaml
- name: Get QAT 1.x Driver
ansible.builtin.uri:
url: "{{ intel_download_url }}/{{ intel_qat_url[qat1] }}"
follow_redirects: "all"
force: true
dest: "{{ intel_extract_dir }}/QAT.L.{{ qat1 }}.tar.gz"
mode: "0644"
failed_when: false
tags:
- intel-inst
- name: Create a Directory For QAT 1.x Driver
ansible.builtin.file:
path: "{{ intel_extract_dir }}/QAT.L.{{ qat1 }}/"
state: "directory"
mode: "0755"
tags:
- intel-inst
- name: Extract QAT 1.x Driver
ansible.builtin.unarchive:
remote_src: true
src: "{{ intel_extract_dir }}/QAT.L.{{ qat1 }}.tar.gz"
dest: "{{ intel_extract_dir }}/QAT.L.{{ qat1 }}/"
register: intel_driver_extracted
tags:
- intel-inst
- name: Install QAT1.x Driver
ansible.builtin.command: "{{ item }}"
args:
chdir: "{{ intel_extract_dir }}/QAT.L.{{ qat1 }}"
become: true
with_items:
- "wget http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_255.4-1ubuntu8.4_amd64.deb"
- "dpkg -i ./libudev-dev_255.4-1ubuntu8.4_amd64.deb"
- "apt install libudev-dev nasm libnl-genl-3-dev"
- "./configure --enable-icp-sriov=host"
- "make"
- "make install"
- "apt remove -y libudev-dev"
when:
- intel_driver_extracted
tags:
- intel-inst
- name: Load Kernel Modules By Default
ansible.builtin.lineinfile:
path: "/etc/modules"
state: "present"
line: "{{ item }}"
with_items:
- "qat_c4xxx"
tags:
- intel-inst
|