-
Notifications
You must be signed in to change notification settings - Fork 0
/
os-passtrough.yml
52 lines (46 loc) · 1.2 KB
/
os-passtrough.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- name: Add the Google repo key
apt_key:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
state: present
- name: Install Google Coral apt repository
apt_repository:
repo: "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main"
state: present
update_cache: yes
filename: docker
- name: Install Coral packages
apt:
pkg:
- gasket-dkms
- libedgetpu1-std
- name: Add udev rule for Coral permissions
copy:
dest: "/etc/udev/rules.d/65-apex.rules"
content: "{{ 'SUBSYSTEM==\"apex\", MODE=\"0660\", GROUP=\"apex\"' + '\n' }}"
notify:
- Reboot
- name: Ensure apex group exists
group:
name: apex
state: present
notify:
- Reboot
- name: Create "{{ user }}" user
user:
name: "{{ user }}"
groups: apex
append: True
notify:
- Reboot
- name: Install packages
apt:
pkg:
- firmware-amd-graphics
# not sure if we REALLY need those if we want just the GPU to do hardware decoding
- libgl1-mesa-dri
- libglx-mesa0
- mesa-vulkan-drivers
- xserver-xorg-video-all
notify:
- Reboot