From 37f2970f96dfd0115975be46a17e3273cef0b854 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sat, 5 Mar 2016 22:33:15 -0800 Subject: [PATCH] [meta] Updates to Ansible scripts --- ansible/imac.yml | 4 ++++ ansible/roles/osx/tasks/main.yml | 2 +- ansible/roles/osx/vars/main.yml | 9 +++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ansible/imac.yml b/ansible/imac.yml index 0e3f4fc..ba51271 100644 --- a/ansible/imac.yml +++ b/ansible/imac.yml @@ -2,7 +2,11 @@ tasks: - name: install sleepwatcher homebrew_cask: name=sleepwatcher state=installed + - name: install smcfancontrol homebrew_cask: name=smcfancontrol state=installed + + # TODO Install launchd scripts, etc. for sleepwatcher + - name: link ~/.wakeup file: src=~/.dotfiles/scripts/kill_imac_hdd_fan.rb dest=~/.wakeup state=link diff --git a/ansible/roles/osx/tasks/main.yml b/ansible/roles/osx/tasks/main.yml index d79449a..a39450a 100644 --- a/ansible/roles/osx/tasks/main.yml +++ b/ansible/roles/osx/tasks/main.yml @@ -1,7 +1,7 @@ - name: copy application preferences synchronize: src: "{{ item }}" - dest: "{{ item | regex_replace(' ', '\ ') }}" + dest: "{{ item }}" rsync_opts: --ignore-existing with_items: "{{ app_prefs }}" diff --git a/ansible/roles/osx/vars/main.yml b/ansible/roles/osx/vars/main.yml index 340fac2..caa7753 100644 --- a/ansible/roles/osx/vars/main.yml +++ b/ansible/roles/osx/vars/main.yml @@ -92,6 +92,11 @@ osx_defaults: key: wvous-bl-corner type: int value: 10 + - # set the icon size to 36 pixels + domain: com.apple.dock + key: tilesize + type: int + value: 36 # Trackpad settings - domain: com.apple.driver.AppleBluetoothMultitouch.trackpad @@ -152,9 +157,9 @@ osx_defaults: app_prefs: - ~/Library/Application Support/Adium 2.0/ + - ~/Library/Preferences/com.YoruFukurouProject.YoruFukurou.plist - ~/Library/Preferences/com.adiumX.adiumX.plist - ~/Library/Preferences/com.culturedcode.things.plist - - ~/Library/Preferences/com.YoruFukurouProject.YoruFukurou.plist - - ~/Library/Preferences/com.surteesstudios.Bartender.plist - ~/Library/Preferences/com.flexibits.fantastical.plist + - ~/Library/Preferences/com.surteesstudios.Bartender.plist - ~/Library/Preferences/org.herf.Flux.plist