alshabib | e16ef4c | 2016-05-27 17:13:23 -0700 | [diff] [blame] | 1 | --- |
| 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. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 20 | changed_when: true |
alshabib | e16ef4c | 2016-05-27 17:13:23 -0700 | [diff] [blame] | 21 | |
| 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 |