-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
# Implements the NVIDIA Driver Installation Quickstart Guide for Ubuntu LTS - see | ||
# https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#ubuntu-lts | ||
|
||
- name: install runfile prereqs | ||
apt: | ||
name: | ||
- linux-headers-{{ ansible_kernel }} | ||
- build-essential | ||
- gcc-12 | ||
- g++-12 | ||
state: present | ||
update_cache: true | ||
retries: 3 | ||
delay: 3 | ||
|
||
- name: configure update-alternatives for gcc | ||
ansible.builtin.command: | ||
cmd: "{{ item }}" | ||
with_items: | ||
- "update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12" | ||
- "update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-12 12" | ||
|
||
- name: set gcc 12 as default | ||
ansible.builtin.command: | ||
cmd: "{{ item }}" | ||
with_items: | ||
- "update-alternatives --set gcc /usr/bin/gcc-12" | ||
- "update-alternatives --set cc /usr/bin/gcc-12" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters