adds: move to asdf
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
- iterm2
|
||||
# - docker-edge
|
||||
- android-studio
|
||||
- caskroom/versions/java8
|
||||
# - caskroom/versions/java8
|
||||
- android-sdk
|
||||
- ngrok
|
||||
- zeplin
|
||||
@@ -31,6 +31,8 @@
|
||||
- amazon-workspaces
|
||||
# - # 1password # @TODO uncomment this once don't have it already installed....
|
||||
- private-internet-access
|
||||
# - ADD FUSE and SSHFS (https://osxfuse.github.io/)
|
||||
- google-cloud-sdk
|
||||
|
||||
- name: 'add custom homebrew repos'
|
||||
homebrew_tap:
|
||||
@@ -63,7 +65,8 @@
|
||||
'libtool',
|
||||
'unixodbc',
|
||||
'unzip',
|
||||
'curl'
|
||||
'curl',
|
||||
'gpg'
|
||||
]
|
||||
state: present
|
||||
update_homebrew: yes
|
||||
@@ -75,7 +78,7 @@
|
||||
|
||||
- git:
|
||||
repo: https://github.com/asdf-vm/asdf.git
|
||||
dest: "/Users/{{ lookup('env', 'USER')/.asdf }}"
|
||||
dest: "/Users/{{ lookup('env', 'USER') }}/.asdf"
|
||||
version: v0.7.1
|
||||
|
||||
# Note that MAS can only installed applications which are already in the "purchased" tab
|
||||
@@ -93,31 +96,31 @@
|
||||
- name: Install Addroid SDKs etc
|
||||
shell: yes | sdkmanager "{{ item }}" --sdk_root=/Users/{{ lookup('env', 'USER') }}/Library/Android/sdk
|
||||
with_items:
|
||||
- "platforms;android-23"
|
||||
- "platforms;android-25"
|
||||
- "platforms;android-26"
|
||||
- "platforms;android-27"
|
||||
- "platforms;android-28"
|
||||
- "platforms;android-23"
|
||||
- "build-tools;23.0.3"
|
||||
- "build-tools;23.0.1"
|
||||
- "build-tools;25.0.2"
|
||||
- "build-tools;25.0.3"
|
||||
- "build-tools;26.0.2"
|
||||
- "build-tools;26.0.0"
|
||||
- "build-tools;26.0.1"
|
||||
- "build-tools;26.0.2"
|
||||
- "build-tools;26.0.3"
|
||||
- "build-tools;27.0.3"
|
||||
- "build-tools;23.0.3"
|
||||
- "build-tools;23.0.1"
|
||||
- "system-images;android-26;google_apis;x86"
|
||||
- "build-tools;28.0.3"
|
||||
- "system-images;android-23;google_apis;x86"
|
||||
- "system-images;android-26;google_apis;x86"
|
||||
- "extras;android;m2repository"
|
||||
- "extras;google;m2repository"
|
||||
- "extras;google;google_play_services"
|
||||
- "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
|
||||
- "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1"
|
||||
- "add-ons;addon-google_apis-google-23"
|
||||
- "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
|
||||
- "add-ons;addon-google_apis-google-21"
|
||||
- "add-ons;addon-google_apis-google-22"
|
||||
- "add-ons;addon-google_apis-google-21"
|
||||
- "build-tools;26.0.0"
|
||||
- "build-tools;26.0.3"
|
||||
- "build-tools;28.0.3"
|
||||
- "add-ons;addon-google_apis-google-23"
|
||||
|
||||
- name: Get the path to ZSH
|
||||
become: false
|
||||
@@ -137,17 +140,6 @@
|
||||
shell: chsh -s $(which zsh) {{ lookup('env', 'USER') }}
|
||||
become: true
|
||||
|
||||
- name: Install Node Version Manager
|
||||
shell: >
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
||||
|
||||
- name: Install a default node version
|
||||
shell: |
|
||||
. "/Users/{{ lookup('env', 'USER') }}/.nvm/nvm.sh"
|
||||
nvm install node
|
||||
|
||||
- name: "Create a default ZSH configuration"
|
||||
template:
|
||||
src: templates/.zshrc.j2
|
||||
@@ -162,6 +154,29 @@
|
||||
owner: "{{ lookup('env', 'USER') }}"
|
||||
force: yes
|
||||
|
||||
- name: "Install asdf plugins"
|
||||
shell: asdf plugin-add {{ item }} || exit 0
|
||||
with_items:
|
||||
- ruby
|
||||
- elixir
|
||||
- nodejs
|
||||
|
||||
- name: "Install Default Ruby"
|
||||
shell: |
|
||||
asdf install ruby 2.4.2
|
||||
asdf global ruby 2.4.2
|
||||
|
||||
- name: "Install default node"
|
||||
shell: |
|
||||
asdf install nodejs 11.11.0
|
||||
bash /Users/{{ lookup('env', 'USER') }}/.asdf/plugins/nodejs/bin/import-release-team-keyring
|
||||
asdf global nodejs 11.11.0
|
||||
|
||||
- name: "Install default elixir"
|
||||
shell: |
|
||||
asdf install elixir 1.6
|
||||
asdf global elixir 1.6
|
||||
|
||||
- name: Install yarn packages
|
||||
shell: yarn global add {{ item }} --prefix /usr/local
|
||||
with_items:
|
||||
@@ -189,10 +204,10 @@
|
||||
owner: "{{ lookup('env', 'USER') }}"
|
||||
force: no
|
||||
|
||||
- name: Install a global ruby and some core gems
|
||||
shell: |
|
||||
eval "$(rbenv init -)"
|
||||
rbenv install 2.4.2
|
||||
rbenv global 2.4.2
|
||||
gem update --system
|
||||
gem install rcodetools rubocop cocoapods rails ruby-lint
|
||||
# - name: Install a global ruby and some core gems
|
||||
# shell: |
|
||||
# eval "$(rbenv init -)"
|
||||
# rbenv install 2.4.2
|
||||
# rbenv global 2.4.2
|
||||
# gem update --system
|
||||
# gem install rcodetools rubocop cocoapods rails ruby-lint
|
||||
Reference in New Issue
Block a user