ansible/ansible — pull request #6835 by sivel (2014-04-03 01:21:59+00:00)
Title: Add version_compare filter

Based on the filter proposed in #6584, this pull request adds only the `version_compare` filter.

Changed in this pull request, is that by default it will use LooseVersion, with an argument (`strict`) to `version_control` to allow use of StrictVersion instead.

LooseVersion was chosen as the default, since I think people will attempt to do something like:

```
{{ ansible_distribution_version | version_compare(12, '>') }}
```

With StrictVersion `12` would be an invalid version number.