blob: a9b76f033acdae6b08d10cb05b0ffad72dee3db6 [file] [log] [blame]
alshabibe16ef4c2016-05-27 17:13:23 -07001---
2- name: Install Prerequesites
3 become: yes
4 apt: name={{ item }} state=installed
5 with_items:
6 - debhelper
7 - autotools-dev
8 - dkms
9 - zlib1g-dev
10
11- name: Unarchive mlx4 driver package
12 unarchive:
13 copy=no
14 src=http://www.mellanox.com/downloads/Drivers/mlnx-en-3.1-1.0.4.tgz
15 dest=/tmp
16
17- name: Install mlx4 driver
18 become: yes
19 command: /tmp/mlnx-en-3.1-1.0.4/install.sh --batch
David K. Bainbridge17248c02016-08-29 17:04:34 -070020 changed_when: true
alshabibe16ef4c2016-05-27 17:13:23 -070021
22- name: Remove Build Directory
23 become: yes
24 file:
25 path=/tmp/mlnx-en-3.1-1.0.4
26 state=absent
27
28- name: Remove Build files
29 become: yes
30 file:
31 path=/tmp/mlnx-en-3.1-1.0.4.tgz
32 state=absent
33
34- name: Remove Mellanox Service files
35 become: yes
36 file:
37 path=/etc/init/mlnx-en.conf
38 state=absent
39
40- name: Remove Mellanox Init Script
41 become: yes
42 file:
43 path=/etc/init.d/mlnx-en.d
44 state=absent