JBS> There's not a way to have a dynamic inventory script create group
JBS> variables, is there? It's all just host variables?

SvG> That is certainly possible:
SvG> http://docs.ansible.com/developing_inventory.html#script-conventions

Oooh, that is super, and after modifying our custom dynamic inventory
script, it works great. Thanks!

One best-practices type question about this: A side effect of the change
to our script is that before, for each group, we were iterating over the
hosts in that group, and turning the variables associated with the group
into hostvars for the hosts; now, putting the variables into the groups
section, those variables don't show up as hostvars any more. We could, of
course, *also* put them into hostvars, but my intuition is that this would
be less correct: That if a variable is set as a group variable, you
wouldn't expect to see it in hostvars. True?

Thanks again for the tip!

                                      -Josh ([email protected])



This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
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/21611.47914.94694.749242%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to