| Parameter | Choices/Defaults | Comments | 
|---|---|---|
| array_add  boolean  | 
 | Add new elements to the array for a key which has an array as its value. | 
| domain  string  | Default: "NSGlobalDomain" | The domain is a domain name of the form  com.companyname.appname. | 
| host  string  | The host on which the preference should apply. The special value  currentHostcorresponds to the-currentHostswitch of the defaults commandline tool. | |
| key  string / required  | The key of the user preference. | |
| path  string  | Default: "/usr/bin:/usr/local/bin" | The path in which to search for  defaults. | 
| state  string  | 
 | The state of the user defaults. If set to  listwill query the given parameter specified bykey. Returns 'null' is nothing found or mis-spelled.listadded in version 2.8. | 
| type  string  | 
 | The type of value to write. | 
| value  raw  | The value to write. Only required when  state=present. | 
Note
- osx_defaults:
    domain: com.apple.Safari
    key: IncludeInternalDebugMenu
    type: bool
    value: true
    state: present
- osx_defaults:
    domain: NSGlobalDomain
    key: AppleMeasurementUnits
    type: string
    value: Centimeters
    state: present
- osx_defaults:
    domain: /Library/Preferences/com.apple.SoftwareUpdate
    key: AutomaticCheckEnabled
    type: int
    value: 1
  become: yes
- osx_defaults:
    domain: com.apple.screensaver
    host: currentHost
    key: showClock
    type: int
    value: 1
- osx_defaults:
    key: AppleMeasurementUnits
    type: string
    value: Centimeters
- osx_defaults:
    key: AppleLanguages
    type: array
    value:
      - en
      - nl
- osx_defaults:
    domain: com.geekchimp.macable
    key: ExampleKeyToRemove
    state: absent
   Hint
If you notice any issues in this documentation, you can edit this document to improve it.
    © 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
    https://docs.ansible.com/ansible/2.9/modules/osx_defaults_module.html