On 6 August 2014 10:52, Ran <[email protected]> wrote:

> 2. hosts file consists of:
>
> [workercommon]
>
> [tag_worker_1:children]
> workercommon
>
> 3. group_vars has a file workercommon.yml which includes variables.
>
> -
>
> The play's pattern references tag_worker_1 (the ec2 group).  However the
> variables from the "workercommon" group are not available.
>



​This is very logic, as your ec2 hosts are not member​ of workercommon, so
they don't get those variables.

[workercommon:children]
> tag_worker_1
>

> groups_vars for workercommon will be available.  This won't work for me
> because I need to compose workercommon with other groups that will not
> include tag_worker_1.
>

Hard to see from here but my guess is you can remodel your groups, and have
an extra group to handle those differences.


 Serge

-- 
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/CAEhzMJBfs8E7wg9hXn8RO7QX3fopwzHTY7xrtqD%2BSCnT22GQsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to