Ok, that's role_name now.

On Wed, Feb 3, 2016 at 6:42 PM, Warren Seine <[email protected]> wrote:

> Hi,
>
> In Ansible 1.9.4, I was able to use role as a variable to get the current
> role name. In Ansible 2, the variable does not seem to be defined. Any
> replacement?
>
> role_path is defined so I could use {{ role_path | basename }}, but
> that's less convenient.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/Ybn-22aIt0E/unsubscribe.
> To unsubscribe from this group and all its topics, 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/8e888433-2cc8-4865-be9b-17f698dddd62%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/8e888433-2cc8-4865-be9b-17f698dddd62%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Warren Seine*




Founder and CTO of Aerys | aerys.in
Phone: (+33)9 72 28 55 82

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

Reply via email to