aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/i40e.yaml')
-rw-r--r--fdio.infra.ansible/roles/intel/tasks/i40e.yaml21
1 files changed, 12 insertions, 9 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
index 1831dd1dad..2299a3b1b8 100644
--- a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
+++ b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
@@ -2,19 +2,22 @@
# 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
+ 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: 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 }}"
+ 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
@@ -22,12 +25,12 @@
- name: Inst - i40e Network Adapter Driver
command: "{{ item }}"
args:
- chdir: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}/src"
+ chdir: "{{ intel_extract_dir }}/i40e-{{ i40e }}/src"
+ become: true
with_items:
- "make install"
- "modprobe -r i40e"
- "modprobe i40e"
- failed_when: true
when:
- intel_driver_extracted
tags: