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