Skip to content

florianpiesche/ansible-macos-defaults

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }

About

Ansible role to set macOS "defaults" settings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%