adds: initial wip of OSX setup script

This commit is contained in:
Ben
2019-03-09 08:47:39 +00:00
commit 22e1370da4
2 changed files with 42 additions and 0 deletions

37
ansible_osx.yml Normal file
View File

@@ -0,0 +1,37 @@
---
- hosts: localhost
tasks:
- name: Install homebrew
shell: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- name: Install Virtualbox and Vagrant via brew cask
homebrew_cask: name={{ item }} state=present
with_items:
- virtualbox
- vagrant
- visual-studio-code
- google-chrome
- slack
- postico
- datagrip
- sublime-text
- iterm2
- docker-toolbox
- docker
- android-studio
- java
- name: "Install homebrew packages"
homebrew:
name: ['zsh', 'tmux', 'vim', 'yarn', 'kubernetes-cli', 'kubernetes-helm', 'rbenv', 'mas']
state: present
update_homebrew: yes
- name: "Add ZSH to allowed shells"
shell: sudo cat $(which zsh) >> /etc/shells
- name: Install Oh My ZSH
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- name: Set ZSH as the default shell
shell: chsh -s $(which zsh)