Created
February 25, 2016 17:29
-
-
Save kelsin/0dabdabacf7be696b1af to your computer and use it in GitHub Desktop.
This file contains hidden or 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: 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