diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-08-04 10:27:17 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2023-08-04 11:01:25 +0000 |
commit | 4b3893704a47cbfbe9986ade3745ad3d9ebcc304 (patch) | |
tree | a75f56928364983cf7bd2c7cb15a8177fcfa7ecb /fdio.infra.ansible/roles/intel/tasks/main.yaml | |
parent | 4c138c4a6dc8fc55f6b64cbfc7daaaf0f05f258c (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/main.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/main.yaml | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/main.yaml b/fdio.infra.ansible/roles/intel/tasks/main.yaml index 80c8d38998..81b97d87c8 100644 --- a/fdio.infra.ansible/roles/intel/tasks/main.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/main.yaml @@ -41,6 +41,22 @@ tags: - intel-inst-drivers +- name: Check Presence of Intel C4XXX + ansible.builtin.shell: "lspci -d 8086:18a0" + register: intel_qat1_pcis + failed_when: false + changed_when: false + tags: + - intel-inst-drivers + +- name: Check Presence of Intel 4XXX + ansible.builtin.shell: "lspci -d 8086:4942" + register: intel_qat2_pcis + failed_when: false + changed_when: false + tags: + - intel-inst-drivers + - name: Get Intel Ethernet 700 Series driver versions ansible.builtin.set_fact: i40e: "{{ intel_700_compatibility_matrix[intel_700_matrix]['i40e'] }}" @@ -72,7 +88,8 @@ - name: Get Intel QAT driver versions ansible.builtin.set_fact: - qat: "{{ intel_qat_compatibility_matrix['qat'] }}" + qat1: "{{ intel_qat_compatibility_matrix['qat1'] }}" + qat2: "{{ intel_qat_compatibility_matrix['qat2'] }}" when: > intel_qat_matrix is defined tags: @@ -112,9 +129,18 @@ tags: - intel-inst-drivers -- name: Driver Intel QAT - import_tasks: qat.yaml +- name: Driver Intel QAT 1.x + import_tasks: qat1.yaml + when: > + intel_qat1_pcis.stdout_lines | length > 0 and + intel_qat_matrix is defined + tags: + - intel-inst-drivers + +- name: Driver Intel QAT 2.x + import_tasks: qat2.yaml when: > + intel_qat2_pcis.stdout_lines | length > 0 and intel_qat_matrix is defined tags: - intel-inst-drivers
\ No newline at end of file |