This is an Ansible-based repository enabling me to setup my workspace machines from code.
- Keep environments consistent across machines
- Reinstall OS without needing a config backup
- Track workspace config changes
Run this on a blank macOS install to get up and running
xcode-select --install # Install macOS CLI utils
sudo pip install ansible # Install Ansible
git clone https://github.com/mraerino/workspace-config
cd workspace-config
First, create an inventory
file with your machines.
Then run this:
ansible-galaxy install -r requirements.yml # Install role dependencies
ansible-playbook -i inventory site.yml
The playbook uses different host groups when applying roles:
cli
for setting up unix cli envrionments (tested on macOS and Ubuntu)macos
for configuring macOS-based systemslinux
for configuring Linux-based systems
Respectively there is a playbook for each of the groups.
Feel free to adapt bits and pieces into your config.