-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from ajdecon/new-packages
Ubuntu: Use NVIDIA server drivers from Canonical
- Loading branch information
Showing
6 changed files
with
73 additions
and
26 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
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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ galaxy_info: | |
versions: | ||
- 'xenial' | ||
- 'bionic' | ||
- 'focal' | ||
- name: EL | ||
versions: | ||
- '7' | ||
|
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,35 @@ | ||
--- | ||
- name: remove ppa | ||
apt_repository: | ||
repo: ppa:graphics-drivers/ppa | ||
state: absent | ||
|
||
- name: add pin file | ||
copy: | ||
src: "cuda-ubuntu.pin" | ||
dest: "/etc/apt/preferences.d/cuda-repository-pin-600" | ||
owner: "root" | ||
group: "root" | ||
mode: "0644" | ||
|
||
- name: add key | ||
apt_key: | ||
url: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_url }}" | ||
id: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}" | ||
environment: "{{proxy_env if proxy_env is defined else {}}}" | ||
|
||
|
||
- name: add repo | ||
apt_repository: | ||
repo: "deb {{ nvidia_driver_ubuntu_cuda_repo_baseurl }} /" | ||
update_cache: yes | ||
environment: "{{proxy_env if proxy_env is defined else {}}}" | ||
|
||
- name: install driver packages | ||
apt: | ||
name: "{{ nvidia_driver_package_version | ternary(nvidia_driver_ubuntu_cuda_package+'='+nvidia_driver_package_version, nvidia_driver_ubuntu_cuda_package) }}" | ||
state: "{{ nvidia_driver_package_state }}" | ||
autoremove: "{{ nvidia_driver_package_state == 'absent' }}" | ||
purge: "{{ nvidia_driver_package_state == 'absent' }}" | ||
register: install_driver | ||
environment: "{{proxy_env if proxy_env is defined else {}}}" |
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
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