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
jinja2 relative templates #1244
Comments
I agree and suspect it would not cause any problems, want to send me a pull request? Sent from my iPad On Oct 6, 2012, at 8:09 AM, Stijn Opheide notifications@github.com wrote:
|
sure |
closing this ticket as it will be covered by #1254 ... thanks! |
When using inheritance in jinja2 templates, it would be more intuitive to be able to reference depending templates (include, extends) relative to the base template.
example
the base template is a file at: your_repo/templates/some_template.j2
the concrete template is a file at: your_repo/templates/concrete_template.j2
Currently you need to reference the templates relative to the playbook location. I can only get it to work if the playbook is in the 'your_repo' dir, but not if you have to reference it from e.g. your_repo/playbooks/my_playbook.yaml
It is possible to get this to work by changing template_from_file in utils.py:
I don't know however if this has any impact on other parts of ansible.
The text was updated successfully, but these errors were encountered: