Skip to content

uchida/ansible-role-nvidia-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uchida.nvidia-driver

Ansible Role Version License Travis

ansible role to install NVIDIA graphics driver

Role Variables

nvidia_driver_repo: nvidia
nvidia_driver_version: 384
  • nvidia_driver_repo is a variable to specify which APT repository is added, choice of ['nvidia', 'ppa', 'ubuntu'] and default is nvidia
  • nvidia_driver_version is a variable to specify NVIDIA graphics driver version and current default is 384

Dependencies

  • uchida.nvidia-repo: to add NVIDIA CUDA/Machine Learning APT repository, for cuda drivers

Example Playbook

register NVIDIA CUDA repository and install cuda-drivers

- hosts: servers
  roles:
    - role: uchida.nvidia-driver
      nvidia_driver_repo: nvidia

register ppa repository and install graphics driver version 390

- hosts: servers
  roles:
    - role: uchida.nvidia-driver
      nvidia_driver_repo: ppa
      nvidia_driver_version: 390

install graphics driver version 384.111

- hosts: servers
  roles:
    - role: uchida.nvidia-driver
      nvidia_driver_repo: ubuntu
      nvidia_driver_version: "384.111"

install graphics driver version 384.81 from ubuntu or nvidia

- hosts: servers
  roles:
    - role: uchida.nvidia-repo
    - role: uchida.nvidia-driver
      nvidia_driver_repo: ubuntu
      nvidia_driver_version: "384.81"

License

CC0

dedicated to public domain, no rights reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published