diff --git a/README.md b/README.md index ac7a14a..8ed8819 100644 --- a/README.md +++ b/README.md @@ -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 ``` \ No newline at end of file diff --git a/ansible_osx.yml b/ansible_osx.yml index c8c1991..516958b 100644 --- a/ansible_osx.yml +++ b/ansible_osx.yml @@ -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: diff --git a/templates/.asdfrc.j2 b/templates/.asdfrc.j2 new file mode 100644 index 0000000..8544bb6 --- /dev/null +++ b/templates/.asdfrc.j2 @@ -0,0 +1 @@ +legacy_version_file = yes \ No newline at end of file diff --git a/templates/.zshrc.j2 b/templates/.zshrc.j2 index 3ba75d0..4736b29 100644 --- a/templates/.zshrc.j2 +++ b/templates/.zshrc.j2 @@ -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" \ No newline at end of file +# Load asdf +. $HOME/.asdf/asdf.sh +. $HOME/.asdf/completions/asdf.bash \ No newline at end of file