"role" variable

25 views
Skip to first unread message

Warren Seine

unread,
Feb 3, 2016, 12:42:35 PM2/3/16
to Ansible Project
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.

Warren Seine

unread,
Feb 4, 2016, 5:35:33 AM2/4/16
to ansible...@googlegroups.com
Ok, that's role_name now.

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8e888433-2cc8-4865-be9b-17f698dddd62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Warren Seine




Founder and CTO of Aerys | aerys.in
Reply all
Reply to author
Forward
0 new messages