I’ve been trying to figure out a chicken and egg problem with SSH keys. I’m building out Ansible automation to manage my dotfiles and configuration of my workstations, but I need to have my SSH keys installed in order to download my code from GitHub. I’m trying to avoid having to manually copy my keys to a fresh installation, and I want to avoid using an overly complex enterprise provisioning tool.
I’ve put together a quick shell script that I can copy from GitHub in a web browser, but I’m wondering if there is a better option. Ideally it would be something that automatically installs my keys similar to what cloud-init does, but built more for local installs.