In this post, we will see how to resolve How can a Jinja template handle versions comparison in Ansible?
Question:I have a file that has all the environments release versions,
.), I cannot use a float format.
Here is my code:
How can I make this work with versions like
Best Answer:There is a
versiontest added to Jinja by Ansible for this kind of use case:
Given the task:
If you have better answer, please add a comment about this, thank you!