Sysadmin

Quick tip: Add multiple users with multiple public SSH keys with Ansible

Because it took me a while to figure out how to do it cleanly, here’s my solution for adding multiple users with multiple public SSH keys on a server, using Ansible: in login-vars.yml users: – login: “user1” pass_hash: “$6$G1Q……..” pubkeys: – “ssh-rsa AAAAB3N…..yBd1 user1@first-key” – “ssh-rsa AAAAB3N…..eWDp user1@second-key” -...

Continue reading...