forked from KirioXX/AppDepInstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
45 lines (37 loc) · 1.12 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
---
- hosts: 127.0.0.1
connection: local
vars:
the_user: "{{ ansible_user_id }}"
vars_files:
- default.config.yml
roles:
- role: geerlingguy.homebrew
tags: ["homebrew"]
- role: geerlingguy.mas
when: mas_installed_apps|bool
tags: ["mas"]
tasks:
- include_tasks: tasks/extra-packages.yml
tags: ["extra-packages"]
- name: change user shell to zsh
become: yes
user:
name: "{{ the_user }}"
shell: /bin/zsh
- name: Add Android configs to zshrc
blockinfile:
path: "{{ ansible_env.HOME }}/.zshrc"
block: |
# Android
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# JAVA
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export PATH=$PATH:$JAVA_HOME/bin
tags: ["android"]
- include_tasks: tasks/avd-devices.yml
tags: ["android"]