Configure nvidia properly
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
font_size_1: 12
|
||||
font_size_2: 12
|
||||
|
||||
gpu: nvidia
|
||||
|
||||
users:
|
||||
- name: hannes-work
|
||||
vt: 1
|
||||
|
||||
20
playbook.yml
20
playbook.yml
@@ -607,7 +607,13 @@
|
||||
permit nopass nolog setenv {PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin} :sudonopw
|
||||
become: true
|
||||
|
||||
- block:
|
||||
- name: gpu configuration
|
||||
tags:
|
||||
- gpu
|
||||
block:
|
||||
- name: AMD configuration
|
||||
when: machine.gpu == 'amd'
|
||||
block:
|
||||
- name: install AMDGPU packages
|
||||
package:
|
||||
name:
|
||||
@@ -638,8 +644,18 @@
|
||||
EndSection
|
||||
become: true
|
||||
|
||||
- name: Nvidia configuration
|
||||
when: machine.gpu == 'nvidia'
|
||||
block:
|
||||
- name: install nouveau packages
|
||||
package:
|
||||
name:
|
||||
- mesa
|
||||
- lib32-mesa
|
||||
state: present
|
||||
become: true
|
||||
when:
|
||||
- machine.gpu is defined and machine.gpu == 'amd'
|
||||
- machine.gpu is defined
|
||||
|
||||
- set_fact:
|
||||
users: "{{ machine.users }}"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
declare -a aurdeps=()
|
||||
|
||||
proctected=(
|
||||
nvidia-dkms
|
||||
intel-ucode
|
||||
amd-ucode
|
||||
base
|
||||
|
||||
Reference in New Issue
Block a user