battleschool icon indicating copy to clipboard operation
battleschool copied to clipboard

OSX Defaults

Open patrickheeney opened this issue 11 years ago • 2 comments

Would it be possible to build a ansible module for osx defaults similar to the mac_pkg. It would look something like:

name: Enable dock autohide
mac_default: >
  key=autohide
  domain=com.apple.dock
  value=true
  type=bool
  user={{ ansible_ssh_user }}
  state=present

name: Set the icon size of Dock items to 50 pixels
mac_default: >
  key=tilesize
  domain=com.apple.dock
  value=50
  type=int
  user={{ ansible_ssh_user }}
  state=present

This would run the code similar to https://github.com/boxen/puppet-boxen/blob/master/manifests/osx_defaults.pp in boxen / puppet. I don't know python but I would be happy to contribute a bunch of playbooks using the new options.

The default playbooks could consist of https://github.com/ndhoule/my-boxen/tree/master/modules/osx_config/manifests which is similar to ones I used to use and could be included like so:

- name: 'osx-defaults'
  repo: 'https://github.com/spencergibb/ansible-osx-defaults'
  playbooks:
    - animations
    - dashboard
    - terminal

patrickheeney avatar Jan 10 '14 20:01 patrickheeney

Yes it would. I already started keeping track of the commands I use to do just that.

spencergibb avatar Jan 10 '14 20:01 spencergibb

@patrickheeney , how neat that Puppet Boxen has this, I hadn't seen it. I wish it were incorporated into the main repo, since Forks aren't searchable unfortunately. I'm also working to get this going, in particular I love to show invisibles, which is not yet in the Boxen file, https://github.com/ndhoule/my-boxen/blob/master/modules/osx_config/manifests/finder.pp .

AnneTheAgile avatar Oct 05 '14 17:10 AnneTheAgile