This playbook installs and configures most of the software I use on my Mac for web and software development. Some things in macOS are difficult to automate (notably, the Mac App Store and certain tools from Apple), so I still have some manual installation steps, but at least it's all documented here.
This is a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be adding settings and packages to this set of playbooks over time.
See also:
- Battleschool
- osxc
- MWGriffin/ansible-playbooks (the original inspiration for this project)
- Install Ansible.
- Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). - Clone this repository to your local drive.
- Run
$ ansible-galaxy install -r requirements.yml
inside this directory to install required Ansible roles. - Run
ansible-playbook main.yml -i inventory -u [username] -K
inside this directory (substitute[username]
for your macOS account username). 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.
Applications (installed with Homebrew Cask):
- google-chrome
- sequel-pro
- vagrant
- virtualbox
- slack
- iterm2
- lastpass
- sizeup
- flycut
- spotify
- docker
Packages (installed with Homebrew):
- pv
- openssl
- git
- git-flow
- go
- gpg
- python
- sqlite
- zsh
- vim
- tmux
- nvm
- npm
- tig
- ssh-copy-id
- htop
- php70
- php70-mcrypt
My dotfiles are also installed into the current user's home directory.
Finally, there are a few other preferences and settings added on for various apps and services.
Check out Ansible for DevOps, which will teach you how to do some other amazing things with Ansible.
Ekkachai Danwanichakul, 2016 (originally inspired by Jeff Geerling, 2014 (also originally inspired by MWGriffin/ansible-playbooks)).