Sorry to bring this up again. Was there an answer for - current group?

I appreciate that I can find the groups that are set for a host but I need 
to know what the current group that is being acted on.

The group is defined in the playbook but I need to loop over the hosts for 
that group in a template and don't want all possible groups that the host 
is associated with

Many thanks

On Monday, 30 December 2013 14:54:50 UTC, [email protected] wrote:
>
> Does Ansible provide predefined variables to use in scripts? I am looking 
> for variables like:
> - current host
> - current group
> - current user
> - current task
> - current role
> etc.
>
> I have not found these variables among these from "gathering facts".
>

-- 
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/b3ee4554-6a16-40f3-a6fa-979ba13daa24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to