On 17 July 2014 06:09, John Wang <[email protected]> wrote: > The problem in the above configuration is, the variable "var1" in the > foo.yml cannot be resolved to "my_cluster" defined in group_vars/all . I > have to use the -e option of ansible-playbook explicitly. Is this how > ansible works ? And how to realize my above purpose ? >
You cant't define something that points to the inventory (hosts: in the play) with something that comes from the inventory (group_vars). That would create a black hole. -- 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/CAEhzMJBrH3JRZjWuJWdhjNZj%3DMJx9mgipMST1jogBA1hn5gD1A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
