aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
blob: 8c34d096aa0a492b5fb82c7e9a7a43cd444280d7 (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
---
# file: roles/intel/tasks/i40e.yaml

- name: Inst - Get i40e Network Adapter Driver
  get_url:
    url: "{{ intel_i40e_driver_url }}"
    dest: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}.tar.gz"
    mode: 0644
  tags:
    - intel-inst

- name: Inst - Extract i40e Network Adapter Driver
  unarchive:
    remote_src: true
    src: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}.tar.gz"
    dest: "{{ intel_i40e_driver_dir }}/"
    creates: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}"
  register: intel_driver_extracted
  tags:
    - intel-inst

- name: Inst - i40e Network Adapter Driver
  command: "make install && modprobe -r i40e && modprobe i40e"
  args:
    chdir: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}/src"
  failed_when: no
  when:
    - intel_driver_extracted
  tags:
    - intel-inst