Created
February 6, 2016 13:47
-
-
Save ikuwow/4419e0e13076f197eb53 to your computer and use it in GitHub Desktop.
osx_defaultsモジュール (from Ansible 2) でMacのプロビジョニングが簡単になってすごい便利 ref: http://qiita.com/ikuwow/items/86dd11b111640cfee3f0
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
- name: Check Dock | |
shell: "defaults read com.apple.dock | grep autohide > /dev/null && test `defaults read com.apple.dock autohide` -eq 1; echo $?" | |
register: is_autohide | |
changed_when: is_autohide.stdout != '0' | |
- name: Autohide Dock | |
shell: "defaults write com.apple.dock autohide -int 1" | |
notify: Restart Dock | |
when: is_autohide.stdout != '0' |
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
- name: Autohide Dock | |
osx_defaults: domain=com.apple.dock key=autohide type=bool value=true | |
notify: Restart Dock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment