So vars plugins have to be specified per play, like 'include_vars:' do? If so, no savings there.
An inventory script would be pretty good as it would be a write once, then stays the same for every extra inventory. Can you clarify how it might work? This command turns will output JSON from the Ansible .yml file: python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < all.yml > all.json The other inventory scripts return groups. Would I have to wrap that output in a 'all' group for it to work? Is that enough? On Friday, June 26, 2015 at 12:39:32 AM UTC+1, Hagai Kariti wrote: > > Problem with a vars plugin is that you'll have to specify it in each > playbook. New idea: you could put another inventory script in your dir that > evaluates your common file. > -- 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/dfd00c7d-012f-45b0-b550-9f3c014618b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
