Ansible role to set macOS "defaults" settings.
- maxOS >= 10.10
- Ansible 2.3
hash_behaviour = merge
Just add the role to your requirements.yml
file:
- src: https://github.com/feffi/ansible-macos-defaults.git
name: feffi.macos-defaults
macos_defaults: {
defaults: [
{ domain: "com.apple.ActivityMonitor", key: "IconType", type: "integer", value: "5" },
{ domain: "com.apple.ActivityMonitor", key: "OpenMainWindow", type: "boolean", value: "true" },
{ domain: "com.apple.ActivityMonitor", key: "SortColumn", type: "string", value: "CPUUsage" },
{ domain: "com.apple.dock", key: "expose-animation-duration", type: "float", value: "0.12", global: true },
{ domain: "NSGlobalDomain", key: "AppleLanguages", type: "array", value: [ "de", "en" ], global: true },
{ domain: "NSGlobalDomain", key: "AppleLanguages", type: "array", value: [ "nl" ], add: true, global: true }
]
}
- hosts: all
roles:
- { role: feffi.macos-defaults }