I believe it should be a good idea to check filters or modules code 
<https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/lookup/file.py>
 and 
implement a filter, i.e. role_path(rolename). It's a bit complicated 
though: if you just copy this code to your filter it won't work due to 
import issues.

On Monday, July 27, 2015 at 10:27:19 PM UTC+3, Mauro Nigrele wrote:
>
> Thanks Paul, i'll try this workaround, but i still thinking that must be a 
> way to access this vars, since ansible is using it internally.
>
> On Monday, July 27, 2015 at 12:11:26 AM UTC-3, Paul Markham wrote:
>>
>> Not sure if this helps, but you can specify the roles directory using 
>> environment variable $ANSIBLE_ROLES_PATH. I don't know if you could set 
>> this from within a playbook, though. We set this, and others, from a 
>> wrapper script.
>>
>

-- 
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/77d6d360-65ef-405a-aa95-e85cdf96e650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to