Ansible playbook for automating macOS development machine installation.
Uses:
Inspired by i.a. mac-dev-playbook
- Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). - Run
./bootstrap.sh
to install Homebrew and Ansible - Clone or download this repository to your local drive.
- Run
ansible-galaxy install -r requirements.yml
inside this directory to install required Ansible roles. - Sign into the Mac App Store via the GUI.
- Run playbook with
./ansible.sh
Note: If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Run brew doctor to see if this is the case.
See vars/main.yml
~/.gitconfig
[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX
My dotfiles (https://github.com/walokra/dotfiles) are also installed into the current user's home directory under .dotfiles, including the .osx dotfile for configuring Mac OS X for ease of use. To use them, cd into ~/.dotfiles and bash source bootstrap.sh
. To set sensible OS X defaults run also bash ./.osx
.
- (asimov)[https://github.com/stevegrunwell/asimov]: exclude project dependencies from Time Machine.
sudo brew services start asimov