From 22e1370da4007128ed22ebd5b4f95b4b158af031 Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 9 Mar 2019 08:47:39 +0000 Subject: [PATCH] adds: initial wip of OSX setup script --- README.md | 5 +++++ ansible_osx.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 README.md create mode 100644 ansible_osx.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac7a14a --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +To run playbook: + +``` +ansible-playbook -i "localhost," -c local ansible_osx.yml +``` \ No newline at end of file diff --git a/ansible_osx.yml b/ansible_osx.yml new file mode 100644 index 0000000..4bc4bde --- /dev/null +++ b/ansible_osx.yml @@ -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) \ No newline at end of file