Skip to content

Instantly share code, notes, and snippets.

@kelsin
Created February 25, 2016 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelsin/0dabdabacf7be696b1af to your computer and use it in GitHub Desktop.
Save kelsin/0dabdabacf7be696b1af to your computer and use it in GitHub Desktop.
---
- hosts: local
become: no
tasks:
- name: Update Homebrew
homebrew: update_homebrew=yes upgrade_all=yes
- name: Install Emacs
homebrew: name=emacs state=latest install_options=with-cocoa
- name: Install Homebrew Packages
homebrew: name={{ item }} state=latest
with_items:
- ansible
- bash
- bash-completion
- chruby
- curl
- editorconfig
- git
- global
- htop-osx
- imagemagick
- nginx
- phantomjs
- reattach-to-user-namespace
- ruby-install
- stunnel
- tmux
- tree
- vim
- watch
- watchman
- wget
- name: Install Cask Packages
homebrew_cask: name={{ item }} state=present
with_items:
- macvim
- name: Install Nginx Config
copy: src=nginx.conf dest=/usr/local/etc/nginx/nginx.conf backup=yes mode=0644
notify: reload nginx
- name: Install Nginx Cert
copy: src=cert.crt dest=/usr/local/etc/nginx/cert.crt backup=yes mode=0644
notify: reload nginx
- name: Install Nginx Cert Key
copy: src=cert.key dest=/usr/local/etc/nginx/cert.key backup=yes mode=0644
notify: reload nginx
- name: Install Nginx Launchctl file
become: yes
copy: remote_src=yes src=/usr/local/opt/nginx/homebrew.mxcl.nginx.plist dest=/Library/LaunchAgents/homebrew.mxcl.nginx.plist owner=root group=wheel mode=0644
notify: load nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment