add role to install nvidia-381 driver

This commit is contained in:
Alexander Grothe 2017-06-20 16:46:57 +02:00
parent 8a1aa945de
commit 2a039bcd3a

View File

@ -0,0 +1,16 @@
---
- name: add ppa:graphics-drivers/ppa
apt_repository:
repo: 'ppa:graphics-drivers/ppa'
state: present
update_cache: yes
- name: install nvidia-381 and other required packages
apt:
name: '{{ item }}'
state: present
install_recommends: no
with_items:
- nvidia-381
- nvidia-settings