How to use when condition with value in range

Hi Team,

I have a requirement to use replace module of ansible when a specific variable value is in some range like below
Release (2.1) and ABOVE
Release 2.0.3 → 2.0.99
Release 1.8.8 → 1.8.99
Release 1.7.11 → 1.7.99
something like – When: version | int == [1.7.11 … 1.7.99] , any help will be much appreciative.

http://docs.ansible.com/ansible/latest/playbooks_tests.html#version-comparison