wip: migration to asdf for version management, too painful having different one for everything
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
To run playbook:
|
||||
|
||||
```
|
||||
ansible-playbook -i "localhost," -c local ansible_osx.yml
|
||||
ansible-playbook -i "localhost," -c local ansible_osx.yml --ask-become-pass
|
||||
```
|
||||
@@ -16,7 +16,7 @@
|
||||
- datagrip
|
||||
- sublime-text
|
||||
- iterm2
|
||||
- docker-edge
|
||||
# - docker-edge
|
||||
- android-studio
|
||||
- caskroom/versions/java8
|
||||
- android-sdk
|
||||
@@ -28,6 +28,9 @@
|
||||
- zoomus
|
||||
- postman
|
||||
- microsoft-office
|
||||
- amazon-workspaces
|
||||
# - # 1password # @TODO uncomment this once don't have it already installed....
|
||||
- private-internet-access
|
||||
|
||||
- name: 'add custom homebrew repos'
|
||||
homebrew_tap:
|
||||
@@ -42,7 +45,6 @@
|
||||
'yarn',
|
||||
'kubernetes-cli',
|
||||
'kubernetes-helm',
|
||||
'rbenv',
|
||||
'mas',
|
||||
'postgresql',
|
||||
'watchman',
|
||||
@@ -50,7 +52,18 @@
|
||||
'awscli',
|
||||
'imagemagick@6',
|
||||
'gnu-time',
|
||||
'kubectx'
|
||||
'kubectx',
|
||||
'coreutils',
|
||||
'automake',
|
||||
'autoconf',
|
||||
'openssl' ,
|
||||
'libyaml',
|
||||
'readline',
|
||||
'libxslt',
|
||||
'libtool',
|
||||
'unixodbc',
|
||||
'unzip',
|
||||
'curl'
|
||||
]
|
||||
state: present
|
||||
update_homebrew: yes
|
||||
@@ -60,10 +73,22 @@
|
||||
name: imagemagick@6
|
||||
state: linked
|
||||
|
||||
- git:
|
||||
repo: https://github.com/asdf-vm/asdf.git
|
||||
dest: "/Users/{{ lookup('env', 'USER')/.asdf }}"
|
||||
version: v0.7.1
|
||||
|
||||
# Note that MAS can only installed applications which are already in the "purchased" tab
|
||||
# of the Mac app store. So if you're using a new app store account or you've never installed
|
||||
# one of the below apps before, you'll need to install it from the Mac App Store app by hand
|
||||
# the first time.
|
||||
- name: Install apps from the Mac App Store using MAS (Assumes you're logged in etc)
|
||||
shell: mas install {{ item }}
|
||||
with_items:
|
||||
- 409183694 # Keynote
|
||||
- 1295203466 # Microsoft remote desktop
|
||||
- 497799835 # xcode
|
||||
- 496437906 # shush microphone manager
|
||||
|
||||
- name: Install Addroid SDKs etc
|
||||
shell: yes | sdkmanager "{{ item }}" --sdk_root=/Users/{{ lookup('env', 'USER') }}/Library/Android/sdk
|
||||
@@ -130,6 +155,13 @@
|
||||
owner: "{{ lookup('env', 'USER') }}"
|
||||
force: yes
|
||||
|
||||
- name: "Create a default asdf configuration"
|
||||
template:
|
||||
src: templates/.asdfrc.j2
|
||||
dest: /Users/{{ lookup('env', 'USER') }}/.asdfrc
|
||||
owner: "{{ lookup('env', 'USER') }}"
|
||||
force: yes
|
||||
|
||||
- name: Install yarn packages
|
||||
shell: yarn global add {{ item }} --prefix /usr/local
|
||||
with_items:
|
||||
|
||||
1
templates/.asdfrc.j2
Normal file
1
templates/.asdfrc.j2
Normal file
@@ -0,0 +1 @@
|
||||
legacy_version_file = yes
|
||||
@@ -8,14 +8,18 @@ export PATH=${PATH}:${ANDROID_HOME}/platform-tools
|
||||
export PATH=/usr/local/opt/imagemagick@6/bin:${PATH}
|
||||
|
||||
# Load rbenv
|
||||
eval "$(rbenv init -)"
|
||||
# eval "$(rbenv init -)"
|
||||
|
||||
# Load nvm
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh --no-use" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh --no-use" # This loads nvm
|
||||
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
ZSH_THEME="rubbyrussel"
|
||||
|
||||
# Load personal ZSH config which should be stored in ~/.zshrc.personal
|
||||
. ~/.zshrc.personal
|
||||
|
||||
ZSH_THEME="rubbyrussel"
|
||||
# Load asdf
|
||||
. $HOME/.asdf/asdf.sh
|
||||
. $HOME/.asdf/completions/asdf.bash
|
||||
Reference in New Issue
Block a user