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

add check_mode tags to shell command and script tasks that should be run even...

add check_mode tags to shell command and script tasks that should be run even when checking (only do this if the task is known to not make system changes


Former-commit-id: 6529371c
parent bddc3755
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@
- name: get kernel version
shell: uname -r
register: kernel_version
check_mode: no
- name: check nvidia driver
......
......@@ -28,11 +28,17 @@
sudo: true
when: ansible_os_family == 'Debian'
- name: stat lmod
stat: path="{{ soft_dir }}/lmod/{{ lmod_version }}"
register: lmodstat
- name: Download LMOD
get_url:
url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2
dest={{source_dir}}/Lmod-{{ lmod_version }}.tar.bz2
mode=0444
when: not lmodstat.stat.exists
- name: Uncompress LMOD
unarchive:
......@@ -40,6 +46,7 @@
dest={{ source_dir }}
copy=no
creates={{source_dir}}/Lmod-{{ lmod_version }}/README
when: not lmodstat.stat.exists
- name: Compile and install Lmod
shell: cd {{ source_dir }}/Lmod-{{ lmod_version }}; ./configure --prefix={{ soft_dir }} --with-mpathSearch=YES --with-caseIndependentSorting=YES && make install LUA_INCLUDE={{ lua_include }}
......
......@@ -12,6 +12,7 @@
sudo: true
register: drivers_installed
ignore_errors: true
check_mode: no
- name: default dont install
set_fact:
......@@ -22,10 +23,12 @@
command: 'ofed_info | head -n 1 | cut -f 1 -d " "'
register: driver_version
ignore_errors: true
check_mode: no
- name: get desired driver version
shell: 'echo {{ MELLANOX_DRIVER_SRC }} | cut -f 1,2,3 -d "-"'
register: desired_driver_version
check_mode: no
- name: set install due to drivers not installed
......
......@@ -83,10 +83,12 @@
register: slurm_generic_resource
ignore_errors: true
when: slurm_gres_check is defined
check_mode: no
- name: Gres - Test for Nvidia devices
script: scripts/nvidia-probe.py
register: probeOutput
check_mode: no
- name: "set nvidiaprobe slurm_gres_list"
set_fact: "slurm_gres_list={{ probeOutput.stdout }}"
......
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