Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bmacauley/afceddb34f8a883b0bb6 to your computer and use it in GitHub Desktop.
Save bmacauley/afceddb34f8a883b0bb6 to your computer and use it in GitHub Desktop.
Battleschool Ansible playbook for setting up a Macbook Pro.
---
- hosts: workstation
tasks:
- name: print from playbook
debug: msg="in playbooks/playbook.yml"
- name: easy install pip
easy_install: name=pip
sudo: yes
- name: install apps from pip
pip: name={{item}}
sudo: yes
with_items:
- virtualenv
- cliff
- pyyaml
- awscli
- name: install homebrew_taps
homebrew_tap: tap={{item}} state=present
with_items:
- gapple/services
- name: install apps from homebrew
homebrew: name={{item}} state=present update_homebrew=yes
with_items:
- coreutils
- git
- node
- maven
- rbenv
- dos2unix
- ruby
- tomcat
- wget
- ctags
- dnsmasq
- httpie
# requires node/npm from above
- name: install global apps from npm
npm: name={{item}} global=yes
with_items:
- grunt-cli
- name: install gvm the Groovy enVironment Manager
mac_pkg: pkg_type=script script_creates=/usr/local/bin/gvm
script_prefix="echo | " script_exe=bash
url=http://get.gvmtool.net
- name: create homdir symlinks
file: src={{item.from}} dest={{item.to}} state=link
sudo: no
with_items:
- from: ~/Dropbox/ubuntu/.bash_aliases
to: ~/.bash_aliases
- from: ~/Dropbox/ubuntu/.bash_logout
to: ~/.bash_logout
- from: ~/Dropbox/ubuntu/.bashrc
to: ~/.bashrc
- from: ~/Dropbox/mac/battleschool
to: ~/.battleschool
- from: ~/Dropbox/ubuntu/.ctags
to: ~/.ctags
- from: ~/Dropbox/ubuntu/.gitconfig
to: ~/.gitconfig
- from: ~/Dropbox/ubuntu/.inputrc
to: ~/.inputrc
- from: ~/Dropbox/ubuntu/.profile
to: ~/.profile
- from: ~/Dropbox/ubuntu/.todo
to: ~/.todo
- from: ~/Dropbox/ubuntu/.vimrc
to: ~/.vimrc
- from: ~/Dropbox/ubuntu/.zsh
to: ~/.zsh
- from: ~/Dropbox/ubuntu/.zshrc
to: ~/.zshrc
- from: ~/Dropbox/mac/bin
to: ~/bin
# - name: install gems
# gem: name={{item}} state=latest
# with_items:
# - brewbygems
# - bundler
# - compass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment