A simple ansible playbook the distributes your ssh keys to a list of hosts. This is intended to be ran by the end user and is not for bulk user key deployment.
- Ansible Core 2.17.4
- Clone this repo
cd key-spreaderpython3 -m virtualenv .venvsource .venv/bin/activatepip install -r requirements.txt- Copy
hosts.exampletohosts - Update
hostswith machines you would like to provision. (See Ansible Inventory)- Setting
ansible_userwill define which user to use.
- Setting
- Copy your public keys (id_rsa.pub and id_ed25519.pub for example) to the keys folder.
- Run
./distribute.shto distribute your keys :)