Secure Authentication

Hi

In hosts file I have 10 servers, each having different password.
How can I make secure authentication to all hosts without specifying password in plain text?

Hi,

what about some kind of a bootstrap playbook that will create a deployment user with sudo rights and a ssh key access.

This way you will have to provide the password exact one time per server.

/mf

Rishikesh Pawar ,

Based on what Marcus suggested here a way to start. Mine uses a pem file that you have some where. My approach is simple. I always create an ansible user to do the work on nodes. My user role creates the ansible user on nodes and adds a sudoer file from template.

I hope this works for you or at least help you start with your own solution

(attachments)

main.yml (466 Bytes)
sudoer.j2 (41 Bytes)
ansible_bootstraping.yml (328 Bytes)

Thanks Marcus franke