My need is to call the ansible playbook with dynamic inventory and this inventory script needs to accept arguments . so depending on arguments the hosts will be different. I searched through the forrum and looks like the only option is to export variable which might not be a good idea in my case.
So now i am trying to get the json out of a script by explicitly calling a custom method in dynamic inventory script and then trying to send this json to the playbook
Can the -i option of dynamic inventory accept a json directly instead of a executable file ?
I tried it and it doesnt work. I am using 1.8.2