calling dynamic datas frequently in the playbook

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

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.

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