[meta] Clean up laptop playbook

pull/28/head
Alpha Chen 10 years ago
parent 99d1c71c8a
commit e428a2420e

@ -1,12 +1,12 @@
- hosts: local - hosts: local
tasks: tasks:
- file: path={{ ansible_env.HOME }}/Applications state=directory - file: path={{ ansible_env.HOME }}/Applications state=directory
# - homebrew: name=caskroom/cask/brew-cask state=upgraded
- homebrew_tap: name=caskroom/cask state=present - homebrew_tap: name=caskroom/cask state=present
- homebrew: name=brew-cask state=present - homebrew: name=brew-cask state=present
# - homebrew_cask: name={{ item }} state=installed
# with_items: - name: get id for built-in keyboard
# - slimbatterymonitor shell: ioreg -n IOHIDKeyboard -r | grep -e VendorID\" -e ProductID | ruby -e 'print ARGF.read.scan(/\d+/).join(?-)'
- shell: ioreg -n IOHIDKeyboard -r | grep -e VendorID\" -e ProductID | ruby -e 'print ARGF.read.scan(/\d+/).join(?-)'
register: keyboard_id 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>' - name: s/caps lock/ctrl/
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>'

Loading…
Cancel
Save