Skip to content

emilio2hd/mac-dev-playbook

Repository files navigation

Mac Development Ansible Playbook

A playbook that installs and configures most of the software I use on my Mac for web and software development.

See also:

Installation

  1. Clone this repository to your local drive.
  2. Run bash init.sh inside this directory to install required libs and applications. Enter your account password when prompted.

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.

Running a specific set of tagged tasks

You can filter which part of the provisioning process to run by specifying a set of tags using ansible-playbook's --tags flag.

bash run.sh --tags "dotfiles,homebrew"

To see all the available tags, run:

bash init.sh --list-tags

Overriding Defaults

Not everyone's development environment and preferred software configuration is the same.

You can override any of the defaults configured in default.config.yml by creating a config.yml file and setting the overrides in that file. For example, you can customize the installed packages and apps with something like:

homebrew_installed_packages:
  - cowsay
  - git
  - go

Any variable can be overridden in config.yml; see the supporting roles' documentation for a complete list of available variables.

Included Applications / Configuration (Default)

Applications (installed with Homebrew Cask):

Packages (installed with Homebrew):

Visual Studio Code Extension:

Ruby and Rails

Installs ruby versions and configures .railsrc with my rails_template.

Author

Emilio, Jeff Geerling, 2014 (originally inspired by MWGriffin/ansible-playbooks).