- Write a
vars/secret.vars.yml
andvars/config.yml
file containing desired config (Reco: Runansible-vault encrypt vars/secret.vars.yml
and "safely" store (even in git))- Note that everything inside
secret.vars.yml
will be merged withconfig.yml
variables
- Note that everything inside
- Run
init.sh
-
Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). -
- Run the following command to add Python 3 to your $PATH:
export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"
- Upgrade Pip:
sudo pip3 install --upgrade pip
- Install Ansible:
pip3 install ansible
- Run the following command to add Python 3 to your $PATH:
-
Clone or download this repository to your local drive.
-
Write/Retrieve 2 proper configs:
-
vars/secret.vars.yml
Containing all secret vars (encrypted via
ansible-vault encrypt vars/secret.vars.yml
) - seeexample.secret.vars.yml
-
vars/config.yml
Containing all packages, apps and dock things to install - see
example.config.yml
-
-
Run
ansible-galaxy install -r requirements.yml
inside this directory to install required Ansible roles. -
Run
ansible-playbook local.yml --ask-become-pass --vault-id @prompt
inside this directory. Enter your macOS account password when prompted for the 'BECOME' password.
Note: If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Run
brew doctor
to see if this is the case.