- hosts: 127.0.0.1 connection: local gather_facts: no tasks: - name: brew update homebrew: update_homebrew=yes - name: brew install packages homebrew: name={{item}} with_items: - python - ruby - tmux - z - name: sudo easy_install pip sudo: yes easy_install: name=pip - name: install powerline-status pip: name=powerline-status state=latest pip: name=psutil - name: install emacs homebrew: name=emacs install_options=cocoa - name: brew linkapps command: brew linkapps