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 Sent from mobile device... Please excuse the typos On Aug 12, 2015 20:00, "Marcus Franke" <[email protected]> wrote: 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 <[email protected]> schrieb am Mi., 12. Aug. 2015 21:38: 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? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4e17b824-b3fa-4d81-85f3-a528a864249c%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/4e17b824-b3fa-4d81-85f3-a528a864249c%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFRuYVdbqDqaioYsC0%3DMseYxQc%2B3VD-vZjV9qKsgPsbOHrnh1A%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAFRuYVdbqDqaioYsC0%3DMseYxQc%2B3VD-vZjV9qKsgPsbOHrnh1A%40mail.gmail.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKbtcFWZqmbeYEEC2DHzZC9ujNEMVu0eTaRaih3FOtYiBHFYzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
main.yml
Description: Binary data
sudoer.j2
Description: Binary data
ansible_bootstraping.yml
Description: Binary data
