Skip to content

Prevent recursive variable expansion for paperless_ngx_conf_filename_format #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

borismw
Copy link

@borismw borismw commented May 26, 2025

It seems that even when wrapped between {% raw %}...{% endraw %} the ansible.builtin.lineinfile task interprets the paperless-ngx specific placeholde syntax as Jinja variable expressions and tries to expand them. This causes trouble when using the paperless-ngx specific text template syntax in paperless_ngx_conf_filename_format as ansible and paperless have identical syntaxes in this regard.

This recursive variable expansion can be prevented by escaping the loop item which renders the line for the filename format. (For a more details, see #241.) Again I'm not sure if this is the intended way. But if so, I am happy to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant