Is there any way to pass a parent or calling role's name or file-path to 
dependencies as variable?

---
dependencies:
  - { role: nginx, config_file: "{{ role_path }}/files/nginx.conf" }


I've tried role_path variable, but it gets interpolated in the dependency 
role.

If this is not possible, then is there any equivalent to specifying role 
path in Puppet module equivalent like below - 
"puppet:///modules/webapp/nginx.conf" . Then Ansible could search for role 
in role directories configured. Any ideas??

--
Thanks,
Shantanu

-- 
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/1017b247-57de-4449-8273-6ea68b4ea570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to