Skip to content

[SP-99] Fix lookup ansible.builtin.template for pvr roles#40

Open
zotabee wants to merge 1 commit into
mainfrom
hotfix/sp-98_fix_lookup_template_pvr
Open

[SP-99] Fix lookup ansible.builtin.template for pvr roles#40
zotabee wants to merge 1 commit into
mainfrom
hotfix/sp-98_fix_lookup_template_pvr

Conversation

@zotabee
Copy link
Copy Markdown
Collaborator

@zotabee zotabee commented May 3, 2026

This PR attempts to fix this error that happens when linting or running 4x PVR roles:

WARNING /usr/lib/python3/dist-packages/ansible/plugins/lookup/__init__.py:138 AnsibleWarning Unable to find '../templates/post_rootfolder_body.json.j2' in expected paths (use -vvvvv to see paths) WARNING /usr/lib/python3/dist-packages/ansible/plugins/lookup/__init__.py:138 AnsibleWarning Unable to find '../templates/post_downloadclient_body.json.j2' in expected paths (use -vvvvv to see paths)

https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/uri_module.html
https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_lookups.html

@zotabee zotabee requested a review from Pro-Tweaker May 3, 2026 14:38
@zotabee zotabee self-assigned this May 3, 2026
@zotabee zotabee added the bug Something isn't working label May 3, 2026
@zotabee
Copy link
Copy Markdown
Collaborator Author

zotabee commented May 3, 2026

Not sure about the why and the how on this one... to be investigated further.

@zotabee
Copy link
Copy Markdown
Collaborator Author

zotabee commented May 4, 2026

Might be useful:

https://docs.ansible.com/projects/ansible/latest/reference_appendices/special_variables.html

role_path

The path to the dir of the currently running role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant