Use the role_path variable to get most of the path. Then go back a dir and
into role1.
- { role: role2, role_dir: "{{ role_path }}/../role1" }
On Friday, January 1, 2016 at 11:49:32 AM UTC-6, 张斌 wrote:
>
>
> hi,
>
> i have role1 which depend on role2. and i want role2 to know the path
> of role1 without being hardcoded, how can i achieve this?
>
> #role1/meta/main.yml
> dependencies:
> - { role: role2, role_dir: "{{role_path}}" } --> it doesn't
> work, role_dir is always the path of role2
>
> thanks
>
--
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/3db3dc60-a6a2-4948-b3a0-a382d4199038%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.