ansible role to install nvidia-docker and graphics driver
nvidia_docker_version: 2.0.3
nvidia_docker_docker_version: '*'
nvidia_default_runtime: true
nvidia_docker_version
is a variable to specify which version of nvidia-docker, current default value is2.0.3
nvidia_docker_docker_version
is a variable to specify which version of docker, current default value is'*'
, used only if nvidia_docker_version.startswith('2').nvidia_default_runtime
allows you to set the nvidia runtime to be the docker default (adds to /etc/docker/daemon.json). Default is true
- uchida.docker: to install docker community edition
- uchida.nvidia-driver: to install NVIDIA Graphics driver you may want to select APT repository and driver version, consult README for this role
install nvidia-docker:
- hosts: servers
roles:
- role: uchida.nvidia-docker
install nvidia-docker version 2.0.2:
- hosts: servers
roles:
- role: uchida.nvidia-docker
nvidia_docker_version: 2.0.2
dedicated to public domain, no rights reserved.