Skip to content
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

Remove Jinja2 templating from conditionals #1157

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

sc68cal
Copy link
Contributor

@sc68cal sc68cal commented Jan 17, 2024

This is required for #1152

Newer versions of ansible-core do not allow the use of jinja2 templating
in conditionals, so we need to move more of the jinja2 filtering into
the vars declaration

https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_9.html#playbook
Ansible saves vars as strings, even if the return from a filter
was an integer
@sc68cal sc68cal requested a review from rodvand January 19, 2024 14:42
@sc68cal sc68cal merged commit 94c527d into netbox-community:devel Jan 19, 2024
8 checks passed
@sc68cal sc68cal deleted the un_template_conditionals branch January 19, 2024 17:17
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