Benjamin-Connelly / Provision-OSX

Provision OSX with Ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS X Provisioning

Ansible files for OS X Provisioning.

How to use

Preparation

# install command line tools
sudo xcodebuild -license
xcode-select --install
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# install ansible
brew install ansible

Download repo

git clone git@github.com:bc-drop/dotfiles.git ~/.dotfiles/
cd .dotfiles

Set username variable

Edit line 6 of osx.yml to reflect your username

Run all provisioning

git submodule update # for ansible-modules-extra
HOMEBREW_CASK_OPTS="--appdir=/Applications" ansible-playbook osx.yml

You will have to enter your password a couple times when you get to TASK [osx : Install apps with Homebrew Cask]. There are a few options for storing this secrets that you are welcome to explore if you need this to run completely unattended.

If you want to explore secrets check out Ansible Vault or GitCrypt

Thank you

Shotarok helped me work out some kinks - https://github.com/shotarok/osx-provisioning

About

Provision OSX with Ansible


Languages

Language:Shell 91.4%Language:Vim Script 6.7%Language:Ruby 1.9%