aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/main.yaml
blob: 0d361a951dfcf0f910a34ab152e89ce5aed6335e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# file: roles/performance_tuning/tasks/main.yaml

- name: Inst - Update Package Cache (APT)
  apt:
    update_cache: true
    cache_valid_time: 3600
  when:
    - ansible_distribution|lower == 'ubuntu'
  tags:
    - intel-inst-drivers

- name: Inst - Machine Prerequisites
  package:
    name: "{{ packages | flatten(levels=1) }}"
    state: latest
  tags:
    - intel-inst-drivers

- name: Inst - Check Presence of Intel Ethernet 810 Series
  shell: "lspci -d 8086:1592"
  register: intel_e810_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
  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
  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 - 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