2 # file: roles/performance_tuning/tasks/main.yaml
4 - name: Inst - Update Package Cache (APT)
9 - ansible_distribution|lower == 'ubuntu'
13 - name: Inst - Machine Prerequisites
15 name: "{{ packages | flatten(levels=1) }}"
20 - name: Inst - Check Presence of Intel Ethernet 700 Series
21 shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572"
22 register: intel_700_pcis
28 - name: Inst - Check Presence of Intel Ethernet 800 Series
29 shell: "lspci -d 8086:1592"
30 register: intel_800_pcis
36 - name: Inst - Get Intel Ethernet 700 Series driver versions
38 i40e: "{{ intel_700_compatibility_matrix[intel_700_matrix]['i40e'] }}"
39 iavf: "{{ intel_700_compatibility_matrix[intel_700_matrix]['iavf'] }}"
40 nvm: "{{ intel_700_compatibility_matrix[intel_700_matrix]['nvm'] }}"
42 intel_700_matrix is defined
46 - name: Inst - Get Intel Ethernet 800 Series driver versions
48 ice: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ice'] }}"
49 ddp: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ddp'] }}"
50 iavf: "{{ intel_800_compatibility_matrix[intel_800_matrix]['iavf'] }}"
51 nvm: "{{ intel_800_compatibility_matrix[intel_800_matrix]['nvm'] }}"
53 intel_800_matrix is defined
57 - name: Inst - Driver Intel Ethernet 700 Series
58 import_tasks: i40e.yaml
60 intel_700_pcis.stdout_lines | length > 0 and
61 intel_700_matrix is defined
65 - name: Inst - Driver Intel Ethernet 800 Series
66 import_tasks: ice.yaml
68 intel_800_pcis.stdout_lines | length > 0 and
69 intel_800_matrix is defined
73 - name: Inst - Driver Intel iAVF
74 import_tasks: iavf.yaml
76 (intel_700_pcis.stdout_lines | length > 0 and
77 intel_700_matrix is defined ) or
78 (intel_800_pcis.stdout_lines | length > 0 and
79 intel_800_matrix is defined)