Hello,
i would like to ask, what is best practice to handle more Ansible administrators from security perspective.
We would like to login with SSH keys to both control machine and remotes.
Is the best way to do this:
-
Create every administrator his own account at control machine and then just use BECOME to SSH to remote hosts with one general account with sudo rights on remotes? With this solution only private key stored at control machine would be one for general user.
-
Create own account for every administrator on control and remote machines and let them SSH to remotes with their own account? This solution basicly means, we would have to store private keys for each administrator at control machine.
every administrator already have SSH key and we would like to use these existing ones
how insecure is to use passwordless sudo with second approach?
Thank you for your help.