To close this out, I realized from your example that in my debug statements
I was putting the var in "{{}}", which was giving me bad info and making it
look like the var was undefined. Once I took it out of the quotes/curlies,
I saw that the var I was trying to use was being overridden by a var
provided by my host.
So thank you for the help! Problem solved!
On Sunday, May 10, 2020 at 1:31:50 PM UTC-6, Vladimir Botka wrote:
>
> Hi David,
>
> On Sun, 10 May 2020 11:21:18 -0700 (PDT)
> David Sudia <[email protected] <javascript:>> wrote:
>
> > My understanding was that group_vars needed to be in the same directory
> as
> > the inventory to work, but in your example it looks like group_vars is
> one
> > directory up, is that correct?
>
> Yes. It is correct. Ansible loads host and group variable files by
> searching
> paths relative to the inventory file or the playbook.
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9e5a8d17-0e4b-4a9c-abce-a20e01d2708b%40googlegroups.com.