Can INVENTORY pass json strings directly?

Usually we run ansible-playbook ,“ansible-playbook -i host.py fig.yaml”

Do we want this to be done?

eg:
ansible-playbook -i {“all”: {“hosts”: [“192.168.1.153”],“vars”: {“username”: “aaaa”,“password”: “bbbb”,“hostname”: “192.168.1153”}}} fig.yaml

No 'existing' inventory plugin handles this, but you can create one that does.

Please help give an example,thx

You can find all the current inventory plugins here: https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/inventory