Add osx role
This commit is contained in:
parent
878b9aa338
commit
642ea8196f
|
@ -12,3 +12,4 @@
|
|||
- { role: geerlingguy.homebrew, tags: ['brew'] }
|
||||
- { role: dotstrap.fish, tags: ['fish'] }
|
||||
- { role: sublime, tags: ['sublime'] }
|
||||
- { role: osx, tags: ['osx'] }
|
||||
|
|
16
roles/osx/handlers/main.yml
Normal file
16
roles/osx/handlers/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: killall Dock
|
||||
command: killall Dock
|
||||
ignore_errors: yes
|
||||
|
||||
- name: killall Finder
|
||||
command: killall Finder
|
||||
ignore_errors: yes
|
||||
|
||||
- name: killall SystemUIServer
|
||||
command: killall SystemUIServer
|
||||
ignore_errors: yes
|
||||
|
||||
- name: killall cfprefsd
|
||||
command: killall cfprefsd
|
||||
ignore_errors: yes
|
27
roles/osx/tasks/dock.yml
Normal file
27
roles/osx/tasks/dock.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Set the icon size of Dock items.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: tilesize
|
||||
type: float
|
||||
value: 25
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Automatically hide and show the Dock.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide
|
||||
type: bool
|
||||
value: true
|
||||
notify:
|
||||
- killall Dock
|
||||
|
||||
- name: Remove the autohide delay.
|
||||
osx_defaults:
|
||||
domain: com.apple.dock
|
||||
key: autohide-delay
|
||||
type: float
|
||||
value: 0
|
||||
notify:
|
||||
- killall Dock
|
23
roles/osx/tasks/finder.yml
Normal file
23
roles/osx/tasks/finder.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: Hide items on the Desktop.
|
||||
osx_defaults:
|
||||
domain: com.apple.finder
|
||||
key: CreateDesktop
|
||||
type: bool
|
||||
value: false
|
||||
notify:
|
||||
- killall Finder
|
||||
|
||||
- name: 'When performing a search, search the current folder by default.'
|
||||
command: defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||
notify:
|
||||
- killall Finder
|
||||
|
||||
- name: Disable the warning when changing a file extension.
|
||||
osx_defaults:
|
||||
domain: com.apple.finder
|
||||
key: FXEnableExtensionChangeWarning
|
||||
type: bool
|
||||
value: false
|
||||
notify:
|
||||
- killall Finder
|
7
roles/osx/tasks/keyboard.yml
Normal file
7
roles/osx/tasks/keyboard.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Enable full keyboard access.
|
||||
osx_defaults:
|
||||
domain: NSGlobalDomain
|
||||
key: AppleKeyboardUIMode
|
||||
type: int
|
||||
value: 2
|
6
roles/osx/tasks/main.yml
Normal file
6
roles/osx/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- include: dock.yml
|
||||
- include: finder.yml
|
||||
- include: keyboard.yml
|
||||
- include: screensaver.yml
|
||||
- include: universal-access.yml
|
7
roles/osx/tasks/screen-capture.yml
Normal file
7
roles/osx/tasks/screen-capture.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Change the location for screenshots.
|
||||
osx_defaults:
|
||||
domain: com.apple.screencapture
|
||||
key: location
|
||||
type: string
|
||||
value: "~/Pictures/Screenshots"
|
14
roles/osx/tasks/screensaver.yml
Normal file
14
roles/osx/tasks/screensaver.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Require a password when exiting the screen saver.
|
||||
osx_defaults:
|
||||
domain: com.apple.screensaver
|
||||
key: askForPassword
|
||||
type: integer
|
||||
value: 1
|
||||
|
||||
- name: Set the delay time for asking for the password.
|
||||
osx_defaults:
|
||||
domain: com.apple.screensaver
|
||||
key: askForPasswordDelay
|
||||
type: float
|
||||
value: 0
|
7
roles/osx/tasks/universal-access.yml
Normal file
7
roles/osx/tasks/universal-access.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Require a password when exiting the screen saver.
|
||||
osx_defaults:
|
||||
domain: com.apple.universalaccess
|
||||
key: reduceTransparency
|
||||
type: bool
|
||||
value: true
|
Loading…
Reference in a new issue