ilri / rmg-ansible-public

Ansible playbooks for ILRI research-computing infrastructure
GNU General Public License v3.0
8 stars 2 forks source link

Use Ansible's version_compare() filter #77

Closed oguya closed 7 years ago

oguya commented 7 years ago

Instead of doing integer comparisons on strings, we should use Ansible's version_compare() filter.

For example: Run a task on Ubuntu 14.04 hosts only

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