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

- name: Inst - Get iavf Network Adapter Driver
  get_url:
    url: "{{ intel_iavf_driver_url }}"
    dest: "{{ intel_iavf_driver_dir }}/iavf-{{ intel_iavf_version }}.tar.gz"
    mode: 0644
  tags:
    - intel-inst

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

- name: Inst - iavf Network Adapter Driver
  command: "{{ item }}"
  args:
    chdir: "{{ intel_iavf_driver_dir }}/iavf-{{ intel_iavf_version }}/src"
  with_items:
    - "make install"
    - "modprobe -r iavf"
    - "modprobe iavf"
  failed_when: no
  when:
    - intel_driver_extracted
  tags:
    - intel-inst