# calling dynamic datas frequently in the playbook

**URL:** <https://forum.ansible.com/t/calling-dynamic-datas-frequently-in-the-playbook/30157>\
**Category:** Ansible Project\
**Tags:** vmware, awx\
**Created:** [April 21, 2019, 1:07pm UTC](https://forum.ansible.com/t/calling-dynamic-datas-frequently-in-the-playbook/30157 "2019-04-21T13:07:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_Ravindran](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vijay\_Ravindran](https://forum.ansible.com/u/Vijay_Ravindran)\
**Post date:** [April 21, 2019, 1:07pm UTC](https://forum.ansible.com/t/calling-dynamic-datas-frequently-in-the-playbook/30157/1 "2019-04-21T13:07:08Z")

</div>

Folks,  
As I automate vmware infrastructure via ansible awx, I need to pass dynamic variables and datas in the playbook frequently. For example ESXi\_username and ESXi\_password, Datastore\_name etc.

I had to fetch values for the dynamic variables from a .json file, I request your insights if any link for understanding this process or how should I use this kind of methodology

Thanks,

Best regds  
vijay

---

<div class="post-metadata">

**Author:** ![John\_Foley](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@John\_Foley](https://forum.ansible.com/u/John_Foley)\
**Post date:** [April 21, 2019, 5:02pm UTC](https://forum.ansible.com/t/calling-dynamic-datas-frequently-in-the-playbook/30157/2 "2019-04-21T17:02:26Z")

</div>

I am in a similar boat. I ended up using a series of set\_facts to dynamically shape the VMware variables depending on the requirements for a given machine.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [April 21, 2019, 8:27pm UTC](https://forum.ansible.com/t/calling-dynamic-datas-frequently-in-the-playbook/30157/3 "2019-04-21T20:27:54Z")

</div>

it really depends how you want to do it. You can either use group vars, use dictionary structure or surveys in AWX.
