This is my personal (and always a WIP, beware the monsters) Ansible playbook for setting up and enforcing a consistent config on my computers.
Out-of-the-box, the plays will run on localhost
, but it can be configured to run on remote *nix machines as well.
It's designed to init new dotfiles as needed, so be aware that it may clobber existing dotfiles you already have.
- Python 3.5+ and
pip3
- A user account that's a member of the sudoers group
adduser <user> sudo
- Ansible
pip3 install ansible
- An internet connection
git clone https://github.com/daveyb/ansible.git ~/ansible && cd ~/ansible
python3 -m pip install ansible
- Add the output of
dirname $(which pip)
to your PATH
ansible-playbook -i hosts main.yml --ask-become-pass
ansible-playbook -i hosts main.yml --ask-become-pass -t zsh
ansible-playbook -i hosts main.yml --ask-become-pass -t git -e"git_user=MeMeMeMe" -e"[email protected]"
ansible-playbook -i hosts main.yml --ask-become-pass -e"wsl_environment=true"