"Is there a way to (in the play) get info on which group the play is
running against?"

In recent versions, should you need this, the variable "play_host" contains
the list of all hosts currently being targetted.

There is no variable that gives you the host specifier, which is largely
ok, because you also have no function that would resolve it.

I'm curious as to why it would be needed.




On Fri, Aug 29, 2014 at 12:53 AM, Mikael Sandström <[email protected]>
wrote:

> Awesome, thanks!
>
> So given:
> [dbservers]
> Node1
> Node2
>
> Is there a way to (in the play) get info on which group the play is
> running against?
> I.e something that will tell me 'dbservers'?
> Or is that something I have pass in as a variable?
>
> /M
>
> --
> 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/7d254bd2-c284-4607-bed1-3c57501f323a%40googlegroups.com
> .
> 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%2BnsWgxPffRny4ZhY16CXFgL4zAk5f4o1RqF%3D_7S0Yz6Qrk3aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to