How to run ansible playbook on multiple hosts with LDAP credentials?

116 views
Skip to first unread message

Linux Study

unread,
Oct 25, 2021, 6:57:57 AM10/25/21
to Ansible Project
Hello All,

I want execute some playbooks on multiple hosts with LDAP credentials. I don't want this activity password less. I don't want to share SSH keys between hosts. Is it possible to run playbook with LDAP credentials?

Regards,
Abhi

Roberto Paz

unread,
Oct 25, 2021, 8:57:16 AM10/25/21
to Ansible Project
You are not forced to use asymetric keys validation. You can use regular authentication using "-k" and "-K" parametters.

Also, you can provide differente ssh users on every server (if required) adding "ansible_user" variable to the inventory file:

Reply all
Reply to author
Forward
0 new messages