Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not obvious how to include templates between roles #14

Open
DXist opened this issue Nov 23, 2015 · 2 comments
Open

Not obvious how to include templates between roles #14

DXist opened this issue Nov 23, 2015 · 2 comments

Comments

@DXist
Copy link

DXist commented Nov 23, 2015

I have two roles - childrole and baserole. childrole depends on baserole.
I wasn't able to include in template roles/childrole/templates/sometemplate template roles/baserole/templates/basetemplate.

Could you clarify how does ansible search templates in this case?

@DXist
Copy link
Author

DXist commented Nov 24, 2015

Found possible issue - ansible/ansible#7106

Jinja doesn't allow template includes outside of playbook dir.

@DXist
Copy link
Author

DXist commented Nov 24, 2015

I changed role_path to /work/roles in source code and managed to include templates by path, starting with `roles/templates'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant