From f700bfc6b71076fe3f61cc27ccbbd857f27016a9 Mon Sep 17 00:00:00 2001 From: Tom Downes Date: Thu, 27 Apr 2023 18:58:05 -0500 Subject: [PATCH] Fix Chrome Remote Desktop NVIDIA Grid installation - use gcc-12 to compile NVIDIA GRID drivers to align with cc used to compile kernel - fix invocation of --silent option --- .../scripts/configure-grid-drivers.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/community/modules/remote-desktop/chrome-remote-desktop/scripts/configure-grid-drivers.yml b/community/modules/remote-desktop/chrome-remote-desktop/scripts/configure-grid-drivers.yml index ae23fb2ef7..fbd1b3a796 100644 --- a/community/modules/remote-desktop/chrome-remote-desktop/scripts/configure-grid-drivers.yml +++ b/community/modules/remote-desktop/chrome-remote-desktop/scripts/configure-grid-drivers.yml @@ -36,6 +36,9 @@ - gdebi-core - mesa-utils - gdm3 + - gcc-12 + - pkg-config + - libglvnd-dev state: present update_cache: true register: apt_result @@ -57,7 +60,8 @@ state: stopped - name: Install GPU driver - ansible.builtin.command: /tmp/NVIDIA-Linux-x86_64-510.85.02-grid.run -silent + ansible.builtin.shell: | + CC=gcc-12 /tmp/NVIDIA-Linux-x86_64-510.85.02-grid.run --silent register: result changed_when: result.rc == 0 when: nvidiasmi_result is failed