An Ansible role that installs the NVIDIA driver.
- Ansible 2.9
Whether or not to install the driver:
nvidia_driver_install: yes
NVIDIA driver type, possible other value is tesla:
nvidia_driver_version: 'XFree86'
NVIDIA driver version:
nvidia_driver_version: '387.22'
The download directory to which the driver installation package will be downloaded:
nvidia_driver_download_dir: '/var/cache/nvidia'
Whether or not to remove the gcc
package after installation:
nvidia_driver_build_remove_gcc: no
---
# requirements.yml
collections:
- name: community.general
version: X.Y.Z
roles:
- name: idiv_biodiversity.nvidia_driver
src: https://github.com/idiv-biodiversity/ansible-role-nvidia-driver
version: vX.Y.Z
...
Write a top-level playbook:
---
- name: compute nodes
hosts: compute
roles:
- role: idiv_biodiversity.nvidia_driver
tags:
- nvidia-driver
...
Define the role dependency in meta/main.yml
:
---
dependencies:
- role: idiv_biodiversity.nvidia_driver
tags:
- nvidia-driver
...
MIT
This role was created in 2017 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).