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

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

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:

https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html