[meta] Add state params to tasks

pull/28/head
Alpha Chen 10 years ago
parent 6041117b87
commit af8de08dcd

@ -1,7 +1,7 @@
---
- homebrew: name=stow
- homebrew: name=stow state=present
# when: ansible_distribution == "MacOSX"
# - apt: pkg=stow
# - apt: pkg=stow state=present
# when: ansible_distribution == "Debian"
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles

@ -1,5 +1,5 @@
---
- homebrew: name=zsh
- homebrew: name=zsh state=present
- file:
src: "{{ ansible_env.HOME }}/.dotfiles/src/prezto"
dest: "{{ ansible_env.HOME}}/.zprezto"

@ -1,5 +1,5 @@
---
# - homebrew: name=caskroom/cask/brew-cask state=upgraded
- command: brew install caskroom/cask/brew-cask
- homebrew_cask: name={{ item }}
- homebrew_cask: name={{ item }} state=installed
with_items: casks

@ -1,7 +1,6 @@
---
- command: defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -int 1
sudo: True
- debug: var={{ defaults }}
- command: defaults write {{ item }}
with_items: defaults | list
- command: killall {{ item }}

@ -1,4 +1,4 @@
---
- homebrew_tap: tap=caskroom/fonts
- homebrew_cask: name={{ item }}
- homebrew_tap: tap=caskroom/fonts state=present
- homebrew_cask: name={{ item }} state=installed
with_items: fonts

@ -1,5 +1,5 @@
---
- homebrew: name={{ item }}
- homebrew: name={{ item }} state=present
with_items: formulae
- homebrew: name=macvim install_options=override-system-vim
- homebrew: name=macvim install_options=override-system-vim state=present
- command: brew linkapps

Loading…
Cancel
Save