Created
March 11, 2015 14:03
-
-
Save gregelin/a63d4652e78287b4ba21 to your computer and use it in GitHub Desktop.
Battleschool Ansible playbook for setting up a Macbook Pro.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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