Ansible Playbook for Bootstrapping a (new) Computer
Note: Still under construction!
This Ansible playbook automates many of my tasks whenever starting with a fresh OS installation or new computer. It is tailored to my use, but can act as a reference for others to adopt and adapt as their own (kind of like when sharing your dotfiles).
- Install Ansible:
sudo apt update sudo apt install -y ansible git python3-pip
- Play the playbook, from remote repository:
export ANSIBLE_LOG_PATH=~/ansible-bootstrap.log # optional, for storing log sudo true # to prevent a `sudo: a password is required` error ansible-pull -U https://codeberg.org/maze/ansible-bootstrap-computer bootstrap.yaml
Note: One may add
-C $BRANCH_NAMEto use any non-default branch.