forked from jxtx/mac-dev-playbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
38 lines (28 loc) · 1.08 KB
/
bootstrap.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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Change default shell to bash
sudo chsh -s /bin/bash
echo "source ~/.bash_profile" > ~/.bashrc
echo "CLICOLOR=1" >> ~/.bash_profile
echo 'export PS1="(\t)\w/$"' >> ~/.bash_profile
echo 'export PATH="~/Library/Python/3.8/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
#export PATH="~/Library/Python/3.8/bin:$PATH"
#export PATH="/opt/homebrew/bin:$PATH"
/bin/bash
mkdir ~/code
cp github-setup.sh ~/code/github_setup.sh
# This unfortunately pops up a GUI dialog and runs in the background ;(
sudo /usr/bin/xcode-select --install
read -p "Complete the command line tools install and then press enter"
# And this will force the xcode license agreement to come up
sudo xcodebuild
sudo -H python3 -m ensurepip --upgrade
pip3 install --upgrade pip
# Anisble doesn't seem to declare all its dependencies
pip3 install paramiko PyYAML jinja2 httplib2
pip3 install ansible
# Get the playbook
#git clone https://github.com/bxlab/cmdb-laptop-setup.git
# Run the playbook
#cd cmdb-laptop-setup
ansible-playbook main.yml -i localhost, --ask-become-pass