You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: playbooks/operators-install.yaml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,22 +44,23 @@
44
44
45
45
- name: Check NVIDIA Driver Modules are loaded
46
46
shell: "lsmod | grep -i nvidia"
47
-
when: cns_nvidia_driver != true
48
47
register: nvidia_mod
49
48
no_log: True
49
+
ignore_errors: true
50
50
failed_when: false
51
51
52
52
- name: Check NVIDIA SMI loaded
53
-
when: cns_nvidia_driver != true
54
53
shell: "nvidia-smi"
55
54
register: nvidia_smi
56
55
no_log: True
56
+
ignore_errors: true
57
57
failed_when: false
58
58
59
59
- name: NVIDIA Driver Alert
60
60
debug:
61
61
msg: "NVIIDA Driver is installed on the system, please uninstall the NVIDIA Driver and continue the installation. Example: 'sudo /usr/bin/nvidia-uninstall'"
62
-
when: nvidia_mod.rc > 1 and cns_nvidia_driver != true or nvidia_smi.rc == 0 and cns_nvidia_driver != true
62
+
when: cns_nvidia_driver != true and nvidia_mod.rc > 1 or cns_nvidia_driver != true and nvidia_smi.rc == 0
0 commit comments