You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using {{ lookup('template', 'foo.txt') }} in a role the file is looked up in the files folder. To make this compatible with the directory layout for roles the lookup should be based on the templates folder instead (maybe the files folder can be used as a fallback to keep backwards compatibility).
This issue has been resolved as of 2.0 and works in current devel/stable-2.1. As such, we will close it now.
If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.
When using
{{ lookup('template', 'foo.txt') }}
in a role the file is looked up in thefiles
folder. To make this compatible with the directory layout for roles the lookup should be based on thetemplates
folder instead (maybe thefiles
folder can be used as a fallback to keep backwards compatibility).A minimal example has been provided at https://github.com/akloeber/misc/blob/master/ansible_issue_9317.zip. Its output is:
Lookup in
files
folder of roles has been added when fixing #2697.The text was updated successfully, but these errors were encountered: