Environment variable kind of solution is good as long as I call my playbooks from console. But when it comes to automation by integrating with external systems; the inventory generator/builder should be good enough to pull inventory artifacts from database, REST APIs,...
All I need is something like ansible-playbook -i dynamicInventory.py --script-args "location=chennai region=south" my_playbook.yml here '--script-args' helps dyamicInventory.py program to pull inventory artifacts for specified location and region from some datastore On Sunday, 20 March 2016 09:35:03 UTC+5:30, Brian Coca wrote: > > there is no way to do what you ask, options for dynamic inventory are set > either in configuration files or environment variables. > > > ---------- > Brian Coca > -- 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/c1d667e9-0aaf-4342-b55a-c4fc7869b7e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
