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

Ansible 2.9 throws "AnsibleError: template error while templating string: no filter named 'version_compare'" #62

Open
jadbaz opened this issue Nov 18, 2019 · 0 comments

Comments

@jadbaz
Copy link

jadbaz commented Nov 18, 2019

Ansible 2.9 (released Oct 31) removed the 'version_compare' filter (ref ansible/issues/64174)

As such, the following line from configure.yml:
when: ansible_distribution_version|version_compare(7, '=') and wildfly_manage_firewall
Is throwing the following error:
"AnsibleError: template error while templating string: no filter named 'version_compare'"

jadbaz added a commit to jadbaz/wildfly that referenced this issue Nov 18, 2019
This fixes both:
- [inkatze#42](inkatze#43): using ansible_distribution_major_version instead of ansible_distribution_version
- [inkatze#62](inkatze#62): using is version instead of version_compare
jadbaz pushed a commit to jadbaz/wildfly that referenced this issue Mar 24, 2020
This fixes both:
- [inkatze#42](inkatze#43): using ansible_distribution_major_version instead of ansible_distribution_version
- [inkatze#62](inkatze#62): using is version instead of version_compare
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

No branches or pull requests

1 participant