blob: a178ee176832dd778aa8187df854b033aead8725 [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
Zack Williams4d09b3b2017-04-12 22:39:15 -07005 dest=/home/{{ ansible_user_id }}
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
Zack Williams4d09b3b2017-04-12 22:39:15 -070011 creates: /home/{{ ansible_user_id }}/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:
Zack Williams4d09b3b2017-04-12 22:39:15 -070038 path=/home/{{ ansible_user_id }}/i40e-1.4.25
David K. Bainbridge317e7d72016-05-11 08:31:44 -070039 state=absent