1
0
Fork 0

Add a role to install nvidia driver

This commit is contained in:
Daniele Tricoli 2022-12-07 03:38:25 +01:00
parent 414daa402e
commit 25a68374b8
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
apt_become: true
apt_become_user: root

View file

@ -0,0 +1,13 @@
---
- block:
- name: ensure nvidia-driver is present
ansible.builtin.apt:
name:
- nvidia-driver
# - nvidia-detect # Needed only to detect the driver to use.
become: "{{ apt_become }}"
become_user: "{{ apt_become_user }}"