On 01.02.2019 21:13, Subhi Andrews wrote:
Thank you, Kai. Will check it out.

So if we can write a script that generates inventory in json format, we can directly pass the script to the ansible-playbook command? Did I understand
that correctly?

That is correct, if a inventory file doesn't have the execution bit set Ansible will read the content, if the execution bit is set Ansible will run the file.

The script need to return json and the format is described here together with how to develop a plugin
https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fd32607916e939b624c108d7e207e2a1%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to