How to generate and deploy an ssh key with Ansible ?
I do some tutorials for ansible beginners. Today, i explain how to use two modules :
- openssh_keypair : to generate a key with some parameters
- authorized_keys : to push this key on a user into target servers
In an example, I show how create a key on the ansible server or laptop. And how push the public key on targets servers for a specific user.
Very simple and useful no ?