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:
|
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
|
- datagrip
|
||||||
- sublime-text
|
- sublime-text
|
||||||
- iterm2
|
- iterm2
|
||||||
- docker-edge
|
# - docker-edge
|
||||||
- android-studio
|
- android-studio
|
||||||
- caskroom/versions/java8
|
- caskroom/versions/java8
|
||||||
- android-sdk
|
- android-sdk
|
||||||
@@ -28,6 +28,9 @@
|
|||||||
- zoomus
|
- zoomus
|
||||||
- postman
|
- postman
|
||||||
- microsoft-office
|
- microsoft-office
|
||||||
|
- amazon-workspaces
|
||||||
|
# - # 1password # @TODO uncomment this once don't have it already installed....
|
||||||
|
- private-internet-access
|
||||||
|
|
||||||
- name: 'add custom homebrew repos'
|
- name: 'add custom homebrew repos'
|
||||||
homebrew_tap:
|
homebrew_tap:
|
||||||
@@ -42,7 +45,6 @@
|
|||||||
'yarn',
|
'yarn',
|
||||||
'kubernetes-cli',
|
'kubernetes-cli',
|
||||||
'kubernetes-helm',
|
'kubernetes-helm',
|
||||||
'rbenv',
|
|
||||||
'mas',
|
'mas',
|
||||||
'postgresql',
|
'postgresql',
|
||||||
'watchman',
|
'watchman',
|
||||||
@@ -50,7 +52,18 @@
|
|||||||
'awscli',
|
'awscli',
|
||||||
'imagemagick@6',
|
'imagemagick@6',
|
||||||
'gnu-time',
|
'gnu-time',
|
||||||
'kubectx'
|
'kubectx',
|
||||||
|
'coreutils',
|
||||||
|
'automake',
|
||||||
|
'autoconf',
|
||||||
|
'openssl' ,
|
||||||
|
'libyaml',
|
||||||
|
'readline',
|
||||||
|
'libxslt',
|
||||||
|
'libtool',
|
||||||
|
'unixodbc',
|
||||||
|
'unzip',
|
||||||
|
'curl'
|
||||||
]
|
]
|
||||||
state: present
|
state: present
|
||||||
update_homebrew: yes
|
update_homebrew: yes
|
||||||
@@ -60,10 +73,22 @@
|
|||||||
name: imagemagick@6
|
name: imagemagick@6
|
||||||
state: linked
|
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)
|
- name: Install apps from the Mac App Store using MAS (Assumes you're logged in etc)
|
||||||
shell: mas install {{ item }}
|
shell: mas install {{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- 409183694 # Keynote
|
- 409183694 # Keynote
|
||||||
|
- 1295203466 # Microsoft remote desktop
|
||||||
|
- 497799835 # xcode
|
||||||
|
- 496437906 # shush microphone manager
|
||||||
|
|
||||||
- name: Install Addroid SDKs etc
|
- name: Install Addroid SDKs etc
|
||||||
shell: yes | sdkmanager "{{ item }}" --sdk_root=/Users/{{ lookup('env', 'USER') }}/Library/Android/sdk
|
shell: yes | sdkmanager "{{ item }}" --sdk_root=/Users/{{ lookup('env', 'USER') }}/Library/Android/sdk
|
||||||
@@ -130,6 +155,13 @@
|
|||||||
owner: "{{ lookup('env', 'USER') }}"
|
owner: "{{ lookup('env', 'USER') }}"
|
||||||
force: yes
|
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
|
- name: Install yarn packages
|
||||||
shell: yarn global add {{ item }} --prefix /usr/local
|
shell: yarn global add {{ item }} --prefix /usr/local
|
||||||
with_items:
|
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}
|
export PATH=/usr/local/opt/imagemagick@6/bin:${PATH}
|
||||||
|
|
||||||
# Load rbenv
|
# Load rbenv
|
||||||
eval "$(rbenv init -)"
|
# eval "$(rbenv init -)"
|
||||||
|
|
||||||
# Load nvm
|
# Load nvm
|
||||||
export NVM_DIR="$HOME/.nvm"
|
# export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh --no-use" # This loads 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
|
# [ -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
|
# Load personal ZSH config which should be stored in ~/.zshrc.personal
|
||||||
. ~/.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