[meta] Add state params to tasks
diff --git a/ansible/roles/dotfiles/tasks/dotfiles.yml b/ansible/roles/dotfiles/tasks/dotfiles.yml
index e02994b2..64e3a27a 100644
--- a/ansible/roles/dotfiles/tasks/dotfiles.yml
+++ b/ansible/roles/dotfiles/tasks/dotfiles.yml
@@ -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
diff --git a/ansible/roles/dotfiles/tasks/prezto.yml b/ansible/roles/dotfiles/tasks/prezto.yml
index 7133f4a1..01ae6c05 100644
--- a/ansible/roles/dotfiles/tasks/prezto.yml
+++ b/ansible/roles/dotfiles/tasks/prezto.yml
@@ -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"
diff --git a/ansible/roles/osx/tasks/casks.yml b/ansible/roles/osx/tasks/casks.yml
index 55fa8819..afbfe205 100644
--- a/ansible/roles/osx/tasks/casks.yml
+++ b/ansible/roles/osx/tasks/casks.yml
@@ -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
diff --git a/ansible/roles/osx/tasks/defaults.yml b/ansible/roles/osx/tasks/defaults.yml
index 0d971619..280a377a 100644
--- a/ansible/roles/osx/tasks/defaults.yml
+++ b/ansible/roles/osx/tasks/defaults.yml
@@ -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 }}
diff --git a/ansible/roles/osx/tasks/fonts.yml b/ansible/roles/osx/tasks/fonts.yml
index e967c023..2898aaf7 100644
--- a/ansible/roles/osx/tasks/fonts.yml
+++ b/ansible/roles/osx/tasks/fonts.yml
@@ -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
diff --git a/ansible/roles/osx/tasks/homebrew.yml b/ansible/roles/osx/tasks/homebrew.yml
index e3e34117..3bf5792b 100644
--- a/ansible/roles/osx/tasks/homebrew.yml
+++ b/ansible/roles/osx/tasks/homebrew.yml
@@ -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