This an Ansible Playbook to provision my macOS.
It will :
- create usefull directories.
- install packages (brew(and taps), asdf, npm).
- copy dotfiles which configure various applications(Git, npm, terraform, asdf) in home.
- copy some zsh script, mainly for configuration and some helper functions and aliases.
- checkout project in
~/Projects/wk_perso/macos-setup/macos-provision
. - copy
roles/mac-dev-playbook/files/ansible/ansible.cfg
in ~/.ansible.cfg - init file
inventory
file in~/.ansible/inventory
e.g.
[localhost]
mac-name gpg_key=${my-local-gpg-key}
- then go to
~/Projects/wk_perso/macos-setup/macos-provision
. - run
ansible-playbook main.yml --diff --verbose --inventory ~/.inventory --limit $(hostname)
.
Two functions are provided :
macconfig
will open project with code
- Configure iTerm2 https://apple.stackexchange.com/questions/136928/using-alt-cmd-right-left-arrow-in-iterm
At your own risk, this playbook doesn't aim to be used by someone else, it's just to share how I provision my computers.
cut -d ' ' -f1 .tool-versions | xargs -I _ asdf plugin-add _