On Thursday, July 17, 2014 3:38:23 PM UTC+8, Serge van Ginderachter wrote:
>
>
> On 17 July 2014 06:09, John Wang <[email protected] <javascript:>> 
> 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.
>

I felt that. Then is there a way to define variable which can be used in 
the position of the mentioned "var1" in foo.yml ? Is the command line 
options (i.e., -e) is the only way ?

-- 
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/8ec2da0c-3170-4e0e-92c2-29846035127b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to