File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 207
207
gather_facts : yes
208
208
tags : finalise
209
209
tasks :
210
+ - name : Carry out checks on image
211
+ import_role :
212
+ name : builder
213
+ tasks_from : checks.yml
210
214
- name : Finalise image
211
215
import_role :
212
216
name : builder
Original file line number Diff line number Diff line change
1
+ - name : Check whether OFED is installed
2
+ command : ofed_info
3
+ changed_when : false
4
+ failed_when :
5
+ - _ofed_info.rc > 0
6
+ - " 'No such file or directory' not in _ofed_info.msg"
7
+ register : _ofed_info
8
+
9
+ - name : Get package facts
10
+ package_facts :
11
+
12
+ - name : Check e.g. libfabric package hasn't downgraded OFED-installed packages
13
+ assert :
14
+ that : " 'mlnx' in ansible_facts.packages[item].0.version"
15
+ fail_msg : " OFED is installed but package {{ item }} has a non-OFED version: {{ ansible_facts.packages[item].0.version }}"
16
+ when : " 'MLNX_OFED_LINUX-' in _ofed_info.stdout"
17
+ loop : " {{ builder_ofed_check_packages }}"
18
+ vars :
19
+ builder_ofed_check_packages :
20
+ - ibacm
21
+ - infiniband-diags
22
+ - libibumad
23
+ - libibverbs
24
+ - libibverbs-utils
25
+ - librdmacm
26
+ - librdmacm-utils
27
+ - rdma-core-devel
28
+ - rdma-core # didn't actually see this one get downgraded
29
+
You can’t perform that action at this time.
0 commit comments