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 --installto launch the installer). - Run
./bootstrap.shto install Homebrew and Ansible - Clone or download this repository to your local drive.
- Run
ansible-galaxy install -r requirements.ymlinside 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 -RFXMy 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: exclude project dependencies from Time Machine.
sudo brew services start asimov
Installed with mise:
- mise install granted nodejs pnpm python terraform