Provision macOS environment using Ansible
This is required to run our playbooks
pip3 install ansible
Enable Remote login on your macOS since this Ansible setup uses SSH for local provisioning.
-
Clone this repo:
git clone https://github.com/emmanuelstroem/ansible-macos
-
Go into the cloned directory
cd ansible-macos
-
Update the
local_user
variable in hosts.yaml -
Update github
dotfiles_repo
in dotfile config -
Upate the packages you want to be installed in the various package manager configs
-
Run ansible and enter your local machine password at the prompt:
ansible-playbook macbook.yaml -i hosts.yaml --ask-become-pass
Note
- Feel free to comment out any tasks/roles that you might not need.
- This repo assumes that you have public
dotfiles
repo
This project was created by Me highly inspired by Jeff Geerling