-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a729d8
commit c8ac231
Showing
3 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ ! -d ~/.personal_provisioning/roles ]; then | ||
echo 'Cloning roles' | ||
git clone git@github.com:personal-provisioning/roles.git ~/.personal_provisioning/roles | ||
else | ||
echo "Updating roles" | ||
CURRENT_DIR=$(pwd) | ||
cd ~/.personal_provisioning/roles && git pull --rebase && cd $CURRENT_DIR | ||
fi | ||
|
||
echo 'Installing XCode CLI Tools' | ||
xcode-select --install || echo 'XCode CLI Tools are already installed' | ||
|
||
which -s brew | ||
|
||
|
||
if which -s brew | ||
then | ||
echo 'Updating Homebrew' | ||
brew update --all && brew upgrade && brew cleanup | ||
else | ||
echo 'Installing Homebrew' | ||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
fi | ||
|
||
echo 'Installing Ansible' | ||
brew install ansible | ||
|
||
|
||
echo 'Running Ansible' | ||
|
||
ansible-playbook -i "localhost," -c local base.yml | ||
|