Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 }
You can’t perform that action at this time.