Organize the template directory within the roles folder

Hi all,

According to the documentation the template files should sit in the top directory of the templates folder for a given role. Does Ansible recognize the template files if the template directory is organized into sub folders?

e.g

roles
x
templates
folder1
template1.j2
folder2
template2.js

usage of template module in task for role x

template: src=/folder1/template1.js dest=/opt/foo

It does, but the path is relative, not absolute. Try (notice missing
"/" prefix on src):

  template: src=folder1/template1.js dest=/opt/foo