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

- name: Get i40e Network Adapter Driver
  ansible.builtin.uri:
    url: "{{ intel_sourceforge_download_url }}/{{ intel_i40e_url[i40e] }}"
    follow_redirects: "all"
    force: true
    dest: "{{ intel_extract_dir }}/i40e-{{ i40e }}.tar.gz"
    mode: "0644"
  failed_when: false
  tags:
    - intel-inst

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

- name: Install i40e Network Adapter Driver
  ansible.builtin.command: "{{ item }}"
  args:
    chdir: "{{ intel_extract_dir }}/i40e-{{ i40e }}/src"
  become: true
  with_items:
    - "make install"
    #- "modprobe -r i40e"
    - "modprobe i40e"
  when:
    - intel_driver_extracted
  tags:
    - intel-inst