Putting the old repo to rest 💀
I had this repo that hosted a role that would bootstrap servers with the good stuff: a default sudo user with a few packages and ssh configs. Mainly used in my homelab or testing things out in a VPS. It’s been years since I made any real changes, and it was a pain in the ass to keep up to date with the packages. Instead of painstakingly upgrading pip packages with constant breaking changes, I decided to start over with an Ansible collection.
Why a collection?
It seems like Ansible has been moving toward collections for a while. I’d might as well jump on the train. I do admit it takes awhile to fill in the boilerplate to upload at ansible galaxy, but it’s worth it. Once everything is set up, all it takes is a simple
ansible-galaxy collection install digitalsoba.bootstrap with a playbook that looks like this:
- name: Bootstrap
- name: Include bootstrap server role
- user: soba
- github_keys: https://github.com/digitalsoba.keys
And you’ll have a server up in a few seconds/minutes.
- The collection’s repo can be found here: https://github.com/digitalsoba/ansible-collection-boostrap
- Ansible galaxy: https://galaxy.ansible.com/digitalsoba/bootstrap