blob: 69c1e9603e1cec1becfe2d9c64559612e6287d35 [file] [log] [blame]
David K. Bainbridge317e7d72016-05-11 08:31:44 -07001---
2- name: Copy i40e Interface Driver
3 unarchive:
4 src=files/i40e-1.4.25.tar.gz
David K. Bainbridgeb5415042016-05-13 17:06:10 -07005 dest=/home/{{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -07006
7- name: Build i40e Driver
8 command: make
9 args:
10 chdir: i40e-1.4.25/src
David K. Bainbridgeb5415042016-05-13 17:06:10 -070011 creates: /home/{{ ansible_user }}/i40e-1.4.25/src/i40e/i40e.ko
David K. Bainbridge317e7d72016-05-11 08:31:44 -070012
13- name: Unload i40e Driver
14 become: yes
15 modprobe: name=i40e state=absent
16
17- name: Install i40e Driver
18 become: yes
19 command: make install
20 args:
21 chdir: i40e-1.4.25/src
David K. Bainbridge17248c02016-08-29 17:04:34 -070022 changed_when: true
David K. Bainbridge317e7d72016-05-11 08:31:44 -070023
24- name: Load i40e Driver
25 become: yes
26 modprobe: name=i40e state=present
27
28- name: Persist i40e Driver Loadi
29 become: yes
30 lineinfile:
31 dest=/etc/modules
32 line="i40e"
33 state=present
34 insertafter=EOF
35
36- name: Remove Build Files
37 file:
David K. Bainbridgeb5415042016-05-13 17:06:10 -070038 path=/home/{{ ansible_user }}/i40e-1.4.25
David K. Bainbridge317e7d72016-05-11 08:31:44 -070039 state=absent