/
main.yml
executable file
·69 lines (69 loc) · 1.54 KB
/
main.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
57
58
59
60
61
62
63
64
65
66
67
68
69
---
- git:
repo: https://github.com/RetroPie/RetroPie-Setup
dest: /opt/RetroPie-Setup
depth: 1
update: yes
- name: install retropie deps
apt: name={{item}} state=present
with_items:
# borrowed from https://github.com/Albiorix2016/rott
# not sure what ones are actaully needed, but emulationstation doesn't start without some of these
- automake
- build-essential
- ca-certificates
- cmake
- ffmpeg
- git
- libavcodec-dev
- libdrm-dev
- libegl1-mesa-dev
- libfreetype6-dev
- libgbm-dev
- libgles1-mesa
# conflicts on linaro with libmali-rk-dev
# - libgles1-mesa-dev
- libgles2-mesa
- libgles2-mesa-dev
- libpulse-dev
- libsdl-image1.2-dev
- libsdl2-dev
- libtool
- libx11-dev
- libxext-dev
- libxfixes-dev
- libxkbcommon-dev
- libxml2-dev
- lsb-release
- mesa-utils
- pkg-config
- subversion
- x11proto-xf86dri-dev
- xinput
- xutils-dev
- yasm
- zlib1g-dev
- xmlstarlet
- python-pyudev
- name: create group retropie
group:
name: retropie
state: present
- name: Add the user retropie
user:
name: retropie
shell: /bin/bash
groups: retropie, video, input
append: yes
- name: copy setup script over
copy:
src: retropie_setup.sh
dest: /opt/retropie_setup.sh
mode: 0775
- name: run setup script
shell:
cmd: /opt/retropie_setup.sh
environment:
user: retropie
# TODO setup start emulationstation on boot
# linaro: systemctl set-default multi-user.target