Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tasks/cask.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
---
- name: assert cask presence
stat: path={{ install_dir }}/bin/brew-cask
stat: path={{ install_dir }}/Library/Taps/caskroom/homebrew-cask
register: cask_installed

- name: tap the cask repository
homebrew_tap: tap=caskroom/cask state=present
when: cask_installed.stat.exists == false

- name: install brew-cask
homebrew: name=brew-cask state=latest update_homebrew=yes
when: cask_installed.stat.exists == false

- name: add new cask opts to common env
lineinfile: dest=/Users/{{ item }}/.common_env
regexp='^export HOMEBREW_CASK_OPTS'
Expand Down