On Wed, Nov 26, 2014 at 01:01:09PM +0100, Till Maas wrote: > 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?
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 -- 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/20141201095501.GE20312%40genius.invalid. For more options, visit https://groups.google.com/d/optout.
