host_vars with .yml

33 views
Skip to first unread message

Warren Seine

unread,
Feb 2, 2016, 12:29:50 PM2/2/16
to Ansible Project
Hi,

I'm wondering why Ansible picks my variable file when it's called host_vars/local, but not host_vars/local.yml.

Can I set a configuration flag to change this behavior?

Thanks,
Warren.

Brian Coca

unread,
Feb 2, 2016, 4:21:31 PM2/2/16
to Ansible Project
no, this is the matching order precedence "", ".yml", ".yaml",
".json", so local will be picked up if it exists in preference over
local.yml




--
Brian Coca

Warren Seine

unread,
Feb 3, 2016, 4:10:28 AM2/3/16
to ansible...@googlegroups.com
I understand the order of precedence, but local.yml doesn't get picked up even if there is no local.


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/gJ0B7-mwn88/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8m9QNqKQmSP-_VujTf6vZ-iFU2jQG7C_Tb2-9af8UH%3DBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Warren Seine


Founder and CTO of Aerys | aerys.in

Warren Seine

unread,
Feb 3, 2016, 4:56:01 AM2/3/16
to ansible...@googlegroups.com
Ok, I'm wrong. The host_vars directory was at the wrong place. It does pick the .yml file. Sorry for not checking properly.
Reply all
Reply to author
Forward
0 new messages