Re: [ansible] Variables from var files are not properly expanded (#9621)

44 views
Skip to first unread message

Till Maas

unread,
Nov 26, 2014, 9:29:23 AM11/26/14
to ansible...@googlegroups.com
Hi,

this is a followup to
https://github.com/ansible/ansible/issues/9621#issuecomment-64452216

On Tue, Nov 25, 2014 at 11:01:08AM -0800, Michael DeHaan wrote:
> This is a misunderstanding because the variable is inventory scope, and inventory scoped variables cannot be used in includes.

It worked until the referenced commit 9 days ago broke it. Also it is
used like this in a lot of playbooks for example from the Fedora
project:
https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/playbooks/groups/anitya.yml

Also why are the variables in "inventory scope" when they are not
defined in the inventory but the playbook via vars_files?

Till Maas

unread,
Dec 1, 2014, 4:55:08 AM12/1/14
to ansible...@googlegroups.com
Is there some information missing to answer this? I do not find any
information about how to do this better.

http://docs.ansible.com/playbooks_best_practices.html
mentions handlers only for roles and I did not find any reference about
how ansible discovers handlers if there is no role. I remember that
without setting full paths, there were problems when I started using
ansible making it not find some files depending on the current working
directory.

Regards
Till

James Cammarata

unread,
Dec 1, 2014, 5:27:44 PM12/1/14
to ansible...@googlegroups.com
Hi Tyll, I've reopened the issue and will look into it.

Thanks!


--
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 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/20141201095501.GE20312%40genius.invalid.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages