summaryrefslogtreecommitdiffstats
path: root/roles/ib/tasks
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-13 21:33:02 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-13 21:33:02 +0200
commita5dc813bab19dffe02dadfb58c19b455df199a08 (patch)
tree6940c72f6b57abcfe00a638cd480b215a2625da2 /roles/ib/tasks
parent9194983c4daf6f0e16aa382bc903b6c092d08830 (diff)
downloaditm-a5dc813bab19dffe02dadfb58c19b455df199a08.tar.gz
itm-a5dc813bab19dffe02dadfb58c19b455df199a08.tar.bz2
itm-a5dc813bab19dffe02dadfb58c19b455df199a08.tar.xz
itm-a5dc813bab19dffe02dadfb58c19b455df199a08.zip
Prevent IB from crashing Fedora systems, mount Ands shared NFS storage, support development files on CentOS
Diffstat (limited to 'roles/ib/tasks')
-rw-r--r--roles/ib/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/ib/tasks/main.yml b/roles/ib/tasks/main.yml
new file mode 100644
index 0000000..45612ec
--- /dev/null
+++ b/roles/ib/tasks/main.yml
@@ -0,0 +1,16 @@
+---
+- name: Find infiniband interface files
+ find: paths="/etc/sysconfig/network-scripts/" patterns="ifcfg-ib*"
+ register: result
+
+- name: Remove infiniband files from sysconfig
+ file: path="{{ item.path }}" state="absent"
+ with_items: "{{ result.files }}"
+
+- name: Set udev rules
+ template: src="00-ibnm.rules.j2" dest="/etc/udev/rules.d/00-ibnm.rules" owner="root" group="root" mode="0644"
+
+- name: Set mellanox options
+ template: src="mlx.conf.j2" dest="/etc/modprobe.d/mlx.conf" owner="root" group="root" mode="0644"
+ notify: mlx-reload
+