/macbook-configuration

Ansible playbooks for managing Mac workstation configuration

Primary LanguageShell

Personal computer configuration.

This is my personal MacBook configuration. There are many like it, but this one is mine.

For that reason it's largely set up for my particular needs. If you want to use it yourself I'd recommend reading through it first. Remove as much as possible and build up, making changes as you go, so it fits your needs.

Set up

Run the bootstrap script. This will ensure gcc, Homebrew, and Ansible are installed:

$ ./bootstrap.sh

After installing the prerequisites this will run the local playbook for the first time. The script configure is now in /usr/local/bin and you can just execute that script:

$ configure

It's a shortcut to this command, as it would be run from the configuration directory:

$ ansible-playbook install.yml -K

The -K flag means that Ansible will prompt you for your sudo password before it executes the playbook.

If it's your first time, go brew some coffee or tea because this will take some time building packages.

Why?

When planning to replace my previous computer I wanted to make sure I could replicate the environment. More specifically, only the aspects of the previous environment that I wanted to keep.

GitHub's Boxen looked great but overkill, and I wanted to learn Ansible, so here we are.

Credits

The original inspiration was Michael Griffin's ansible-playbooks repository. That collection is far more complete.

I later borrowed some bootstrap scripting from Daniel Jaouen's blog post, How I Fully Automated OS X Provisioning With Ansible.

License

This work is in the public domain.