diff options
author | pmikus <pmikus@cisco.com> | 2021-07-21 06:11:02 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-07-21 12:49:12 +0000 |
commit | ca70f05328367e208545038e3f9b6289f77d8a86 (patch) | |
tree | fe2f13a037d75afa27961539cc01f497b2c435ab /fdio.infra.ansible/roles/intel/tasks/i40e.yaml | |
parent | 813375246758d1695be4e577ba9cd3f0791ea9e3 (diff) |
Ansible: i40e driver install
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ib0e1b37e3d920f8d9a9e88896b6898fe13e4acba
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/i40e.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/i40e.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml new file mode 100644 index 0000000000..cf42f326c2 --- /dev/null +++ b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml @@ -0,0 +1,30 @@ +--- +# file: roles/intel/tasks/i40e.yaml + +- name: Inst - Get 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 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 - 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 |