[meta] Create a laptop playbook

pull/28/head
Alpha Chen 10 years ago
parent 523d06205b
commit bc364a8fe4

@ -0,0 +1,10 @@
tasks:
- file: path={{ ansible_env.HOME }}/Applications state=directory
# - homebrew: name=caskroom/cask/brew-cask state=upgraded
- command: brew install caskroom/cask/brew-cask
- homebrew_cask: name={{ item }} state=installed
with_items:
- slimbatterymonitor
- shell: ioreg -n IOHIDKeyboard -r | grep -e VendorID\" -e ProductID | ruby -e 'print ARGF.read.scan(/\d+/).join(?-)'
register: keyboard_id
- command: defaults -currentHost write -g com.apple.keyboard.modifiermapping.{{ keyboard_id.stdout }}-0 -array-add '<dict><key>HIDKeyboardModifierMappingDst</key><integer>2</integer><key>HIDKeyboardModifierMappingSrc</key><integer>0</integer></dict>'

@ -4,10 +4,6 @@
sudo: True
- command: defaults write {{ item }}
with_items: osx_defaults
- shell: ioreg -n IOHIDKeyboard -r | grep -e VendorID\" -e ProductID | ruby -e 'print ARGF.read.scan(/\d+/).join(?-)'
register: keyboard_id
- debug: var=keyboard_id.stdout
- command: defaults -currentHost write -g com.apple.keyboard.modifiermapping.{{ keyboard_id.stdout }}-0 -array-add '<dict><key>HIDKeyboardModifierMappingDst</key><integer>2</integer><key>HIDKeyboardModifierMappingSrc</key><integer>0</integer></dict>'
- command: killall {{ item }}
with_items:
- Finder

@ -17,7 +17,6 @@ casks:
- qlstephen
- quicklook-csv
- quicklook-json
# - slimbatterymonitor
- steam
- things
- transmission

Loading…
Cancel
Save