I’ve recently made a change such that lookup plugins when used with roles or included files now understand role directories.
See here:
https://github.com/ansible/ansible/issues/2697
This means that within a role if you use {{ lookup(‘file’,‘foo’) }} or even:
- action: shell echo {{ item }}
with_file:
- foo
It will look to see if there is a roles structure available to find the file. It will look in ‘files’ if available, and if not available, it will look in the same directory as the original file.
I am mentioning this as it MAY cause users of roles some need to adapt any “…/” logic in their 1.2 playbooks.
For most people though, it will appear that roles “just work” like they should, so I hope this is a welcome improvement!