blob: 78bd3ef54c8aba467283636ac68e243994a4ae30 [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 }}
6 owner={{ ansible_user }}
7 group={{ ansible_user }}
David K. Bainbridge317e7d72016-05-11 08:31:44 -07008
9- name: Build i40e Driver
10 command: make
11 args:
12 chdir: i40e-1.4.25/src
David K. Bainbridgeb5415042016-05-13 17:06:10 -070013 creates: /home/{{ ansible_user }}/i40e-1.4.25/src/i40e/i40e.ko
David K. Bainbridge317e7d72016-05-11 08:31:44 -070014
15- name: Unload i40e Driver
16 become: yes
17 modprobe: name=i40e state=absent
18
19- name: Install i40e Driver
20 become: yes
21 command: make install
22 args:
23 chdir: i40e-1.4.25/src
David K. Bainbridge17248c02016-08-29 17:04:34 -070024 changed_when: true
David K. Bainbridge317e7d72016-05-11 08:31:44 -070025
26- name: Load i40e Driver
27 become: yes
28 modprobe: name=i40e state=present
29
30- name: Persist i40e Driver Loadi
31 become: yes
32 lineinfile:
33 dest=/etc/modules
34 line="i40e"
35 state=present
36 insertafter=EOF
37
38- name: Remove Build Files
39 file:
David K. Bainbridgeb5415042016-05-13 17:06:10 -070040 path=/home/{{ ansible_user }}/i40e-1.4.25
David K. Bainbridge317e7d72016-05-11 08:31:44 -070041 state=absent