Well, you're using a terribly ancient version of Ansible, unrelated to your
question.

Upgrade to 1.6.10 first, you're missing some security fixes and numerous
other upgrades.

What you have in the first "host_vars" should be fine, however.




On Thu, Jul 31, 2014 at 12:21 PM, Jason Sarrells <[email protected]> wrote:

> I cannot get anything in host_vars to load when running a playbook.  I am
> using Ansible 1.4.3.  What am I doing wrong?
>
>
>
>
> ~/test.yml
> ---
> -hosts: test
>  tasks:
>     - name: debug
>       debug: var={{ foo }}
>
> /etc/ansible/hosts
> [test]
> 10.1.0.241
>
>
>
>
> /etc/ansible/host_vars/test
> ---
> foo: bar
>
>
> or
>
>
> ~/host_vars/test
> ---
> foo: baz
>
>
>  --
> 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/9fe7e8ae-8621-4cbe-84c7-3e7e67303c87%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9fe7e8ae-8621-4cbe-84c7-3e7e67303c87%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgzCPz9qSo6H0OW%3DqCrsCA2DQrMPqCV%2Bi04B-G14OUXK-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to