Skip to content
Snippets Groups Projects
Commit fe33ed19 authored by Chris Hines's avatar Chris Hines
Browse files

since nvidia-probe always outputs valid json now, remove unncessary conditionals

parent c3e16696
No related branches found
No related tags found
1 merge request!87Tweaks
......@@ -88,11 +88,8 @@
script: scripts/nvidia-probe.py
register: probeOutput
- set_fact: slurm_gres_list= "[ ]"
- name: "set nvidiaprobe slurm_gres_list"
set_fact: "slurm_gres_list={{ probeOutput.stdout | from_json }}"
when: probeOutput.stdout is defined and ( probeOutput.stdout|length !=0 )
set_fact: "slurm_gres_list={{ probeOutput.stdout }}"
- name: template gres.conf file
template: src="gres.conf.j2" dest={{ slurm_dir }}/etc/gres/gres.conf mode=644
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment