Skip to content

Commit

Permalink
Merge pull request #13 from jabl/opensm-separate
Browse files Browse the repository at this point in the history
Install opensm only if needed
  • Loading branch information
VilleS1 authored Oct 1, 2019
2 parents 6009bed + 3de2b3d commit 34f3e27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rdma_packages:
- infiniband-diags
- pciutils
- perftest
- opensm
- qperf

# Mutually exclusive:
Expand Down
12 changes: 8 additions & 4 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@

- name: install rdma
package:
name: "{{ item }}"
name: "{{ rdma_core_packages }}"
state: present
with_items: "{{ rdma_core_packages }}"

- name: install extra rdma packages
package:
pkg: "{{ item }}"
name: "{{ rdma_packages }}"
state: present
with_items: "{{ rdma_packages }}"

- name: add infiniband udev rules
template:
Expand Down Expand Up @@ -113,6 +111,12 @@
- ansible_connection == 'chroot'
- rdma_manage_rdma|bool

- name: Make sure opensm is installed if ansible manages it
package:
name: opensm
state: present
when: rdma_manage_opensm|bool

- name: Generate the OpenSM partition configuration file
template:
src: partitions.conf.j2
Expand Down

0 comments on commit 34f3e27

Please sign in to comment.