Ansible Code to setup Mac environment
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install openssl readline sqlite3 xz zlib
brew install pyenv
pyenv install 3.9.10
pyenv global 3.9.10
$(pyenv which python3) -m pip install virtualenvwrapper
Add to to .zshrc or .bash_profile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
export WORKON_HOME=~/.virtualenvs
mkdir -p $WORKON_HOME
. ~/.pyenv/versions/3.9.10/bin/virtualenvwrapper.sh
Download and extract. In the TTF folder select all and Open and install
Standard install then turn on Setting sync to Elsevier GitHub. Check all boxes and then choose merge local
mkvirtualenv ansible
pip install ansible
ansible-galaxy collection install community.general
ansible-playbook mac-setup.yml --ask-become-pass
Note: Some Roles have a never tag on them as they are not very idempotent so will need to be specified directly e.g.
ansible-playbook mac-setup.yml --tags golang --ask-become-pass
Current never tags:
- argo
- golang
- saml2aws
- aws_cli