aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/qat1.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-08-04 10:27:17 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-08-04 11:01:25 +0000
commit4b3893704a47cbfbe9986ade3745ad3d9ebcc304 (patch)
treea75f56928364983cf7bd2c7cb15a8177fcfa7ecb /fdio.infra.ansible/roles/intel/tasks/qat1.yaml
parent4c138c4a6dc8fc55f6b64cbfc7daaaf0f05f258c (diff)
fix(ansible): QAT v1.x installoper-230807
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I2e2047f3d02a1c4f90298cb15f2574e5ea6a7ad4
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/qat1.yaml')
-rw-r--r--fdio.infra.ansible/roles/intel/tasks/qat1.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/qat1.yaml b/fdio.infra.ansible/roles/intel/tasks/qat1.yaml
new file mode 100644
index 0000000000..701c0c1bf1
--- /dev/null
+++ b/fdio.infra.ansible/roles/intel/tasks/qat1.yaml
@@ -0,0 +1,54 @@
+---
+# 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:
+ - "./configure --enable-icp-sriov=host --enable-icp-sym-only"
+ - "make"
+ - "make install"
+ 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 \ No newline at end of file