Skip to content

Commit ddc7fa5

Browse files
committed
Driver Alert Fix
Signed-off-by: Anurag Guda <[email protected]>
1 parent 207060d commit ddc7fa5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

playbooks/operators-install.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,23 @@
4444

4545
- name: Check NVIDIA Driver Modules are loaded
4646
shell: "lsmod | grep -i nvidia"
47-
when: cns_nvidia_driver != true
4847
register: nvidia_mod
4948
no_log: True
49+
ignore_errors: true
5050
failed_when: false
5151

5252
- name: Check NVIDIA SMI loaded
53-
when: cns_nvidia_driver != true
5453
shell: "nvidia-smi"
5554
register: nvidia_smi
5655
no_log: True
56+
ignore_errors: true
5757
failed_when: false
5858

5959
- name: NVIDIA Driver Alert
6060
debug:
6161
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
63+
ignore_errors: true
6364
failed_when: false
6465

6566
- name: GPU PCI ID

0 commit comments

Comments
 (0)