On Mon, Jun 13, 2016 at 10:31 AM, Raghava Krishna < [email protected]> wrote:
> I'am planning to generate dynamic inventory file from configuration > management database system instead of writing in files. Is it possible to > write a script,so that when i run ansible playbook it should pick up > inventory from database. > If it is successful then i have a plan of generating the variables from > database itself. > Yes. Just make a script that queries your CMDB and returns output in JSON format, and that's your dynamic inventory script. http://docs.ansible.com/ansible/developing_inventory.html > -- > 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/bf3eed65-adf3-47ab-a5dc-8a348ddd8e12%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/bf3eed65-adf3-47ab-a5dc-8a348ddd8e12%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Greg DeKoenigsberg Ansible Community Guy -- 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/CAM1FbhHpJo7mjhYCVFK9zS2NTC5EJDCMYmxyVh1TNXXSjfiidA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
