feat(tests): IPv6 fixes
[csit.git] / fdio.infra.ansible / roles / intel / tasks / main.yaml
1 ---
2 # file: roles/performance_tuning/tasks/main.yaml
3
4 - name: Inst - Update Package Cache (APT)
5   apt:
6     update_cache: true
7     cache_valid_time: 3600
8   when:
9     - ansible_distribution|lower == 'ubuntu'
10   tags:
11     - intel-inst-drivers
12
13 - name: Inst - Machine Prerequisites
14   package:
15     name: "{{ packages | flatten(levels=1) }}"
16     state: latest
17   tags:
18     - intel-inst-drivers
19
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
23   failed_when: false
24   changed_when: false
25   tags:
26     - intel-inst-drivers
27
28 - name: Inst - Check Presence of Intel Ethernet 800 Series
29   shell: "lspci -d 8086:1592"
30   register: intel_800_pcis
31   failed_when: false
32   changed_when: false
33   tags:
34     - intel-inst-drivers
35
36 - name: Inst - Get Intel Ethernet 700 Series driver versions
37   set_fact:
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'] }}"
41   when: >
42     intel_700_matrix is defined
43   tags:
44     - intel-inst-drivers
45
46 - name: Inst - Get Intel Ethernet 800 Series driver versions
47   set_fact:
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'] }}"
52   when: >
53     intel_800_matrix is defined
54   tags:
55     - intel-inst-drivers
56
57 - name: Inst - Driver Intel Ethernet 700 Series
58   import_tasks: i40e.yaml
59   when: >
60     intel_700_pcis.stdout_lines | length > 0 and
61     intel_700_matrix is defined
62   tags:
63     - intel-inst-drivers
64
65 - name: Inst - Driver Intel Ethernet 800 Series
66   import_tasks: ice.yaml
67   when: >
68     intel_800_pcis.stdout_lines | length > 0 and
69     intel_800_matrix is defined
70   tags:
71     - intel-inst-drivers
72
73 - name: Inst - Driver Intel iAVF
74   import_tasks: iavf.yaml
75   when: >
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)
80   tags:
81     - intel-inst-drivers