diff options
author | 2021-07-30 08:47:15 +0000 | |
---|---|---|
committer | 2021-09-24 04:19:31 +0000 | |
commit | 93285a12d79b2b14f4e6dad9faf450a51149ca37 (patch) | |
tree | 33aacfb5856379b961c80a379236b27610cad606 /fdio.infra.ansible/roles/intel/tasks/main.yaml | |
parent | d5a815e56dc6a5aeb48b9bc9e063d4ecc167112d (diff) |
Ansible: Intel driver compatibility matrix
+ implements Intel Ethernet 700/800 series driver
installation based on compatiblity matrix
+ includes iavf, i40, ice, ddp driver/profiles installation
+ patch abstracts multiple compatibility scenarios
(dpdk, intel product materials, custom override)
and could be applied per testbed
+ if no matrix choosen, default operating system
drivers are used
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ifbdbf8c2ebc48d81941e66698708a2e0ff57b7de
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/main.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/main.yaml | 70 |
1 files changed, 48 insertions, 22 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/main.yaml b/fdio.infra.ansible/roles/intel/tasks/main.yaml index 0d361a951d..a73e6299a2 100644 --- a/fdio.infra.ansible/roles/intel/tasks/main.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/main.yaml @@ -17,39 +17,65 @@ tags: - intel-inst-drivers -- name: Inst - Check Presence of Intel Ethernet 810 Series - shell: "lspci -d 8086:1592" - register: intel_e810_pcis +- name: Inst - Check Presence of Intel Ethernet 700 Series + shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572" + register: intel_700_pcis failed_when: false changed_when: false tags: - intel-inst-drivers -- name: Inst - Check Presence of Intel Ethernet 700 Series - shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572" - register: intel_700_pcis +- name: Inst - Check Presence of Intel Ethernet 800 Series + shell: "lspci -d 8086:1592" + register: intel_800_pcis failed_when: false changed_when: false tags: - intel-inst-drivers -- name: Inst - Driver Intel Ethernet 810 Series - import_tasks: ice.yaml - when: - - intel_e810_pcis.stdout_lines | length > 0 +- name: Inst - Get Intel Ethernet 700 Series driver versions + set_fact: + i40e: "{{ intel_700_compatibility_matrix[intel_700_matrix]['i40e'] }}" + iavf: "{{ intel_700_compatibility_matrix[intel_700_matrix]['iavf'] }}" + nvm: "{{ intel_700_compatibility_matrix[intel_700_matrix]['nvm'] }}" + when: > + intel_700_matrix is defined tags: - intel-inst-drivers -# - name: Inst - Driver Intel Ethernet 700 Series -# import_tasks: i40e.yaml -# when: -# - intel_700_pcis.stdout_lines | length > 0 -# tags: -# - intel-inst-drivers +- name: Inst - Get Intel Ethernet 800 Series driver versions + set_fact: + ice: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ice'] }}" + ddp: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ddp'] }}" + iavf: "{{ intel_800_compatibility_matrix[intel_800_matrix]['iavf'] }}" + nvm: "{{ intel_800_compatibility_matrix[intel_800_matrix]['nvm'] }}" + when: > + intel_800_matrix is defined + tags: + - intel-inst-drivers + +- name: Inst - Driver Intel Ethernet 700 Series + import_tasks: i40e.yaml + when: > + intel_700_pcis.stdout_lines | length > 0 and + intel_700_matrix is defined + tags: + - intel-inst-drivers + +- name: Inst - Driver Intel Ethernet 800 Series + import_tasks: ice.yaml + when: > + intel_800_pcis.stdout_lines | length > 0 and + intel_800_matrix is defined + tags: + - intel-inst-drivers -# - name: Inst - VF Driver Intel -# import_tasks: iavf.yaml -# when: -# - intel_700_pcis.stdout_lines | length > 0 or intel_e810_pcis.stdout_lines | length > 0 -# tags: -# - intel-inst-drivers +- name: Inst - Driver Intel iAVF + import_tasks: iavf.yaml + when: > + intel_700_pcis.stdout_lines | length > 0 or + intel_800_pcis.stdout_lines | length > 0 and + intel_700_matrix is defined or + intel_800_matrix is defined + tags: + - intel-inst-drivers |