-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·26 lines (26 loc) · 1.67 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
echo "╔╦╗┌─┐┌─┐ ╔═╗┌─┐┌┬┐┬ ┬┌─┐"
echo "║║║├─┤│ ╚═╗├┤ │ │ │├─┘"
echo "╩ ╩┴ ┴└─┘ ╚═╝└─┘ ┴ └─┘┴"
echo "-----------------------------------------------------------------------------------------"
echo "☕️ 🍪️ Starting...️"
echo "-----------------------------------------------------------------------------------------"
echo "Install Homebrew"
echo "-----------------------------------------------------------------------------------------"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "-----------------------------------------------------------------------------------------"
echo "Install Ansible"
echo "-----------------------------------------------------------------------------------------"
brew install ansible
echo "-----------------------------------------------------------------------------------------"
echo "Clone my-environment repository"
echo "-----------------------------------------------------------------------------------------"
echo "using $HOME/mac-setup/my-environment"
git clone https://github.com/klaytonfaria/my-environment "$HOME"/mac-setup/my-environment
cd "$HOME"/mac-setup/my-environment || exit
echo "-----------------------------------------------------------------------------------------"
echo "Starting Mac setup..."
echo "-----------------------------------------------------------------------------------------"
ansible-playbook -i ./hosts playbook.yml
echo "-----------------------------------------------------------------------------------------"
echo "🥳 Done!"