Re: [ansible-project] How to pass command line arg as input for dynamic-inventory executable program during ansible-playbook launch

2016-03-20 Thread Benjamin Redling
On 2016-03-20 12:18, Naren wrote: > 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 databa

Re: [ansible-project] How to pass command line arg as input for dynamic-inventory executable program during ansible-playbook launch

2016-03-20 Thread Naren
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

Re: [ansible-project] How to pass command line arg as input for dynamic-inventory executable program during ansible-playbook launch

2016-03-19 Thread Brian Coca
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

[ansible-project] How to pass command line arg as input for dynamic-inventory executable program during ansible-playbook launch

2016-03-19 Thread Naren
dynamic inventory can be achieved by ansible-playbook -i dynamicInventory.py myplaybook.yml in case I need to pass some dynamic input to the dynamicInventory.py program itself, how can I do that. Command line argument is not working when it coupled with ansible-playbook command Any suggestion