Hi Brian, For once, perhaps the first time ever, that's not it :)
vars_files get evaluated in two stages. (A) Ones that can be loaded globally, that don't reference inventory scoped information such as facts (B) Ones that do. So yes, you can use facts in vars_files paths. In the above example, the problem is actually that users is an array, so: users[0].login And it can be fixed like: users: login: foo Instead of users: - login: foo :) On Mon, Jan 27, 2014 at 7:17 AM, Brian Coca <[email protected]> wrote: > includes happen before fact gathering so ansible_hostname is not available > for use on an include. > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
