Ansible role to set macOS "defaults" settings.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
library
meta
tasks
tests
.travis.yml
LICENSE
README.md

README.md

ansible-macos-defaults

Ansible role to set macOS "defaults" settings.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • maxOS >= 10.10
  • Ansible 2.3

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-macos-defaults.git
  name: feffi.macos-defaults

Role Variables

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 }
  ]
}

Example Playbook

    - hosts: all
      roles:
        - { role: feffi.macos-defaults }