This repo contains ansible code to install packages for my needs - development, design and streaming
xcode-select --install # install Apple's command line tools(starts installation in UI)
pip3 install --upgrade pip # upgrade pip
pip3 install --upgrade ansible
# pip3 install --user ansible # install ansible
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'export PATH=$HOME/Library/Python/3.9/bin:/opt/homebrew/bin:$PATH' >> ~/.zshrc # add python and brew to path
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
source ~/.zshrc
ansible --version # check installation
# install deps
ansible-galaxy install -r requirements.yml
# run playbook
ansible-playbook main.yml --verbose --ask-become-pass
Add --verbose
to command for verbose logging. Use --ask-become-pass
if brew is not installed
cp ./dotfiles/.zshrc ~/.zshrc
cp ./dotfiles/.zshenv ~/.zshenv
This will override .zshrc
and .zshenv
. These steps may be moved to anisble-playbook.
https://apple.stackexchange.com/a/414601
sudo softwareupdate --install-rosetta --agree-to-license
sudo chown -R "$USER":admin $(brew --prefix)/*