Open msoltyspl opened 3 months ago
Files identified in the description:
lib/ansible/plugins/action/template.py
lib/ansible/plugins/lookup/fileglob.py
lib/ansible/modules/template.py
lib/ansible/plugins/lookup/template.py
If these files are incorrect, please update the component name
section of the description or use the component bot command.
Summary
If
ansible.builtin.fileglob
plugin is used inansible.builtin.template
- whether it's vialoop+query()
or viawith_fileglob:
, it searches underfiles/
instead oftemplates/
when used inside a role.It also requires at least
./
prepended to search at all.Issue Type
Bug Report
Component Name
ansible.builtin.fileglob, ansible.builtin.template
Ansible Version
Configuration
OS / Environment
Archlinux
Steps to Reproduce
Expected Results
Fileglob plugin
while called in context oftemplate
should search under templates. Prepending./
to the glob probably shouldn't be necessary either.Actual Results
Code of Conduct