You can pass variables into add_host, so if you have the information
you need you can pass it along with the name you need. For instance:

  add_host:
    name: blah
    groups: db
    ec2_tag_Name: blah
    ec2_tag_Environment: staging

I believe they will be considered inventory host_vars (and not
group_vars) but that seems to be what you want, right?

On Fri, Sep 5, 2014 at 3:54 PM, Josh Smift <[email protected]> wrote:
> JBS> 1.7.1 -- but it's not that variables from group_vars aren't
> JBS> available, it's that host-specific ec2_tag_* variables that come from
> JBS> the ec2.py dynamic inventory script aren't available.
>
> Ah, sorry, I now see that this thread was in fact originally about
> group_vars. I segued off into host-specific inventory variables, and maybe
> wasn't clear enough that I was doing that, sorry for the confusion.
>
>                                       -Josh ([email protected])
>
>
>
> This email is intended for the person(s) to whom it is addressed and may 
> contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
> distribution, copying, or disclosure by any person other than the 
> addressee(s) is strictly prohibited. If you have received this email in 
> error, please notify the sender immediately by return email and delete the 
> message and any attachments from your system.
>
> --
> 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/21514.5362.813995.167768%40gargle.gargle.HOWL.
> 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/CAJQqANdKjuWh%2BMjycicFYuODmAh4fjjDQEO%3DjGim89pO7W5KKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to