You definitely don't want to specify a path off of "/" (root).

It sounds like you are asking to not have to use relative paths.

You can do this.

- include: {{ playbook_dir }}/roles/foo/tasks/bar.yml




On Wed, Aug 20, 2014 at 3:21 AM, Akos Vandra <[email protected]> wrote:

> Hello!
>
> Is there any way to include tasks from another role other than:
>
> - include: ../../common/tasks/rake_db_migrate.yml
> project_dir={{deployed_to}}
>
> I would like to see that either
>
> - include: common/tasks/rake_db_migrate.yml project_dir={{deployed_to}}
> or
> - include: /common/tasks/rake_db_migrate.yml project_dir={{deployed_to}}
> or
> - include: /roles/common/tasks/rake_db_migrate.yml
> project_dir={{deployed_to}}
>
> works
>
> Regards,
>   Akos Vandra
>
> --
> 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/CAHHcNoc-aKWcgDgR05wwBxKKA2G8byj_7f1YzwD0ouOPuwDMcQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgx1UBL2t%2BivusDg8qbmztfosqyv2CYYYidJHOSqUYAvuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to