My own OS X setup, shamelessly copied from Joeri, modified to my own needs.
- Xcode
xcode-select --install
- Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && export PATH=/usr/local/bin:$PATH
- Git
brew install ansible git
Before you (can) run the playbooks, you should (need) to configure them.
Start by duplicating vars.yml.dist
to vars.yml
and adjust it to your own needs.
cp vars.yml.dist vars.yml
Run all playbooks:
ansible-playbook setup.yml --ask-sudo-pass
Or run specific tagged roles:
ansible-playbook setup.yml --tags osx --ask-sudo-pass
Application settings are synced with dropbox using Mackup.
Once the playbooks finished running, wait until dropbox is synced and run mackup restore
.
-
ERROR: While executing gem ... (Gem::FilePermissionError)\n You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Change owner of the gem folder
sudo chown -R user:group /Library/Ruby/Gems/2.0.0
(source)