# Need to Input Host information while run time in Ansible-playbook

**URL:** <https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122>\
**Category:** Ansible Project\
**Created:** [December 16, 2021, 10:31am UTC](https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122 "2021-12-16T10:31:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_Justin](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@Joel\_Justin](https://forum.ansible.com/u/Joel_Justin)\
**Post date:** [December 16, 2021, 10:31am UTC](https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122/1 "2021-12-16T10:31:15Z")

</div>

Hi Team,  
Is there any ways to provide mulitple hosts value input while ansible-playbook runitme? I dont wish to provide the host value in static inventory , instead the hosts information should be fetched while runtime…is there any ways to do that.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 16, 2021, 12:48pm UTC](https://forum.ansible.com/t/need-to-input-host-information-while-run-time-in-ansible-playbook/36122/2 "2021-12-16T12:48:04Z")

</div>

> Hi Team,  
> Is there any ways to provide mulitple hosts value input while ansible-playbook runitme? I dont wish to provide the host value in static inventory , instead the hosts information should be fetched while runtime.....is there any ways to do that.
> 
> Thanks in advance.

Hello,

what about dynamic inventories? [https://docs.ansible.com/ansible/latest/user\_guide/intro\_dynamic\_inventory.html](https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html).

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
