winroom: add HAXM for Android Studio

This commit is contained in:
Timotej Lazar 2022-10-05 10:10:27 +00:00
parent 1d64693617
commit 9344f7b9e8

View file

@ -48,3 +48,29 @@
ANDROID_HOME: "{{ sdk_path }}"
ANDROID_PREFS_ROOT: D:\
GRADLE_USER_HOME: D:\.gradle
- name: Check HAXM install status
win_stat:
path: "%ProgramFiles%\\Intel\\HAXM"
register: file
- when: not file.stat.exists
block:
- name: Download HAXM
win_get_url:
url: https://github.com/intel/haxm/releases/download/v7.7.1/haxm-windows_v7_7_1.zip
dest: C:\
register: download
- name: Unzip HAXM
win_unzip:
src: "{{ download.dest }}"
dest: C:\haxm
- name: Install HAXM
win_command: C:\haxm\silent_install.bat
- name: Remove temporaries
win_file:
path: C:\haxm
state: absent