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

**URL:** <https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916>\
**Category:** Ansible Project\
**Created:** [October 25, 2021, 10:57am UTC](https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916 "2021-10-25T10:57:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhiroxxx](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Abhiroxxx](https://forum.ansible.com/u/Abhiroxxx)\
**Post date:** [October 25, 2021, 10:57am UTC](https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916/1 "2021-10-25T10:57:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Roberto\_J\_R\_Paz](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Roberto\_J\_R\_Paz](https://forum.ansible.com/u/Roberto_J_R_Paz)\
**Post date:** [October 25, 2021, 12:57pm UTC](https://forum.ansible.com/t/how-to-run-ansible-playbook-on-multiple-hosts-with-ldap-credentials/35916/2 "2021-10-25T12:57:16Z")

</div>

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](https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html)
