Please note the name of an ec2 tag group will be "ec2_tag_tagName_tagValue"
not "tag_tagName_value".   This is likely the problem.

Using the inventory scripts on the development branch, the tag
"ec2_tag_tagName" will also be available containing everything with that
tag.

Also, mixing dynamic inventory sources and INI files (crossing the streams)
is really only a thing on the development branch thanks to a recent patch
from @svg.

So I'd definitely recommend trying on 1.7 devel if not already, it will
release very soon.




On Wed, Aug 6, 2014 at 4:52 AM, Ran <[email protected]> wrote:

> I cannot make an ec2 group (via dynamic inventory script) as a child of a
> managed group defined in hosts.
>
> For example:
>
> 1. ec2 dynamic script returns a group of "tag_worker_1"
>
> 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.
>
> However, if I invert the parent child relationship to:
>
> [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.
>
> Can dynamic inventory groups be children of managed groups (and get access
> to the managed groups group_vars)?
>
>
> Thank you!
>
> --
> 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/8e26ec5b-9338-4a92-83a3-f23be6a2ae13%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/8e26ec5b-9338-4a92-83a3-f23be6a2ae13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to