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 |
| 20 | |
| 21 | - name: Remove Build Directory |
| 22 | become: yes |
| 23 | file: |
| 24 | path=/tmp/mlnx-en-3.1-1.0.4 |
| 25 | state=absent |
| 26 | |
| 27 | - name: Remove Build files |
| 28 | become: yes |
| 29 | file: |
| 30 | path=/tmp/mlnx-en-3.1-1.0.4.tgz |
| 31 | state=absent |
| 32 | |
| 33 | - name: Remove Mellanox Service files |
| 34 | become: yes |
| 35 | file: |
| 36 | path=/etc/init/mlnx-en.conf |
| 37 | state=absent |
| 38 | |
| 39 | - name: Remove Mellanox Init Script |
| 40 | become: yes |
| 41 | file: |
| 42 | path=/etc/init.d/mlnx-en.d |
| 43 | state=absent |