-
Notifications
You must be signed in to change notification settings - Fork 1
/
p2_retro_pie_uv4l.yml
executable file
·58 lines (48 loc) · 1.47 KB
/
p2_retro_pie_uv4l.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
53
54
55
56
---
- name: "Installing Retro Pie and UV4L on Raspbian"
hosts: localhost
connection: local
tasks:
- name: Add UV4L project keys
apt_key:
url: https://www.linux-projects.org/listing/uv4l_repo/lpkey.asc
state: present
- name: Add UV4L project repository
apt_repository:
repo: deb https://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
state: present
- name: "Install UV4l"
package:
name:
- uv4l
- uv4l-raspidisp
- uv4l-raspidisp-extras
- uv4l-server
- uv4l-webrtc
- uv4l-demos
state: present
- name: "Add snd-aloop to /etc/modules"
lineinfile:
path: /etc/modules
line: snd-aloop
create: yes
- name: 'Configure ALSA'
lineinfile:
path: /etc/modprobe.d/alsa-base.conf
line: options snd-aloop index=1
create: yes
state: present
- name: Download asound.conf
get_url:
url: https://www.linux-projects.org/home/wp-content/uploads/2019/03/asound.conf
dest: /etc/asound.conf
mode: '0440'
- name: Restart alsa-restore service
service:
name: alsa-restore
state: restarted
- name: Download raspberry pi display.conf
get_url:
url: https://www.linux-projects.org/home/wp-content/uploads/2019/03/uv4l-raspidisp.conf
dest: /etc/uv4l/uv4l-raspidisp.conf
mode: '0440'