-
Notifications
You must be signed in to change notification settings - Fork 2
/
remote_android_ue_tester.yml
64 lines (57 loc) · 1.34 KB
/
remote_android_ue_tester.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
---
- name: Setup remote UE Testers
hosts: remote_ue_testers
become: True
tasks:
- name: Set Hostname
hostname:
name: "{{inventory_hostname}}"
become: True
register: firstrun
- name: Updating hostname
command: "hostnamectl set-hostname {{inventory_hostname}}"
become: True
when: firstrun.changed
- name: Updating hosts file
command: "echo \"127.0.0.1 {{inventory_hostname}}\" >> /etc/hosts"
become: True
when: firstrun.changed
- name: Reboot VM due to Hostname Change
reboot:
reboot_timeout: 180
become: True
when: firstrun.changed
- name: Install Prerequisites
apt:
name:
- xbase-clients
- android-tools-adb
- android-tools-fastboot
- ffmpeg
- libsdl2-2.0-0
- make
- gcc
- pkg-config
- meson
- ninja-build
- libavcodec-dev
- libavformat-dev
- libavutil-dev
- libsdl2-dev
- wget
- cmake
- libavdevice-dev
- libusb-1.0-0-dev
- git
update_cache: yes
become: True
- name: Git checkout
ansible.builtin.git:
repo: https://github.com/Genymobile/scrcpy/
dest: /usr/src/scrcpy
become: True
- name: Install Scrcpy
ansible.builtin.command: sh /usr/src/scrcpy/install_release.sh
become: True
args:
chdir: /usr/src/scrcpy/