diff options
Diffstat (limited to 'fdio.infra.ansible/roles/intel')
-rw-r--r-- | fdio.infra.ansible/roles/intel/defaults/main.yaml | 4 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/i40e.yaml | 8 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/iavf.yaml | 30 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/ice.yaml | 8 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/main.yaml | 9 |
5 files changed, 50 insertions, 9 deletions
diff --git a/fdio.infra.ansible/roles/intel/defaults/main.yaml b/fdio.infra.ansible/roles/intel/defaults/main.yaml index 7789704598..1ea3966f4a 100644 --- a/fdio.infra.ansible/roles/intel/defaults/main.yaml +++ b/fdio.infra.ansible/roles/intel/defaults/main.yaml @@ -18,6 +18,10 @@ packages_by_arch: intel_download_url: "https://downloadmirror.intel.com" +intel_iavf_version: "4.1.1" +intel_iavf_driver_url: "{{ intel_download_url }}/24693/eng/iavf-{{ intel_iavf_version }}.tar.gz" +intel_iavf_driver_dir: "/opt" + intel_i40e_version: "2.15.9" intel_i40e_driver_url: "{{ intel_download_url }}/24411/eng/i40e-{{ intel_i40e_version }}.tar.gz" intel_i40e_driver_dir: "/opt" diff --git a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml index cf42f326c2..8c34d096aa 100644 --- a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml @@ -1,7 +1,7 @@ --- # file: roles/intel/tasks/i40e.yaml -- name: Inst - Get Network Adapter Driver +- 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" @@ -9,7 +9,7 @@ tags: - intel-inst -- name: Inst - Extract Network Adapter Driver +- name: Inst - Extract i40e Network Adapter Driver unarchive: remote_src: true src: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}.tar.gz" @@ -19,8 +19,8 @@ tags: - intel-inst -- name: Inst - Network Adapter Driver - command: "make install; modprobe -r i40e; modprobe i40e" +- 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 diff --git a/fdio.infra.ansible/roles/intel/tasks/iavf.yaml b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml new file mode 100644 index 0000000000..893c608f14 --- /dev/null +++ b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml @@ -0,0 +1,30 @@ +--- +# 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: "make install && modprobe -r iavf && modprobe iavf" + args: + chdir: "{{ intel_iavf_driver_dir }}/iavf-{{ intel_iavf_version }}/src" + failed_when: no + when: + - intel_driver_extracted + tags: + - intel-inst diff --git a/fdio.infra.ansible/roles/intel/tasks/ice.yaml b/fdio.infra.ansible/roles/intel/tasks/ice.yaml index 92a0eb4d7d..e3aff34cfe 100644 --- a/fdio.infra.ansible/roles/intel/tasks/ice.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/ice.yaml @@ -1,7 +1,7 @@ --- # file: roles/intel/tasks/ice.yaml -- name: Inst - Get Network Adapter Driver +- name: Inst - Get ice Network Adapter Driver get_url: url: "{{ intel_ice_driver_url }}" dest: "{{ intel_ice_driver_dir }}/ice-{{ intel_ice_version }}.tar.gz" @@ -9,7 +9,7 @@ tags: - intel-inst -- name: Inst - Extract Network Adapter Driver +- name: Inst - Extract ice Network Adapter Driver unarchive: remote_src: true src: "{{ intel_ice_driver_dir }}/ice-{{ intel_ice_version }}.tar.gz" @@ -19,8 +19,8 @@ tags: - intel-inst -- name: Inst - Network Adapter Driver - command: "make install; modprobe -r ice; modprobe ice" +- name: Inst - ice Network Adapter Driver + command: "make install && modprobe -r ice && modprobe ice" args: chdir: "{{ intel_ice_driver_dir }}/ice-{{ intel_ice_version }}/src" failed_when: no diff --git a/fdio.infra.ansible/roles/intel/tasks/main.yaml b/fdio.infra.ansible/roles/intel/tasks/main.yaml index 0d6134d452..4f6289113d 100644 --- a/fdio.infra.ansible/roles/intel/tasks/main.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/main.yaml @@ -26,7 +26,7 @@ - intel-inst-drivers - name: Inst - Check Presence of Intel Ethernet 700 Series - shell: "lspci -d 8086:1585; lspci -d 8086:1572" + shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572" register: intel_700_pcis failed_when: no changed_when: no @@ -46,3 +46,10 @@ # - 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 |