Fix version comparison for PowerTools installation 05/63705/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 17 Apr 2020 21:42:42 +0000 (14:42 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 17 Apr 2020 21:42:42 +0000 (14:42 -0700)
commite808a63f4e157fef1eaa11784bff3ebd5365203e
tree58f0b408f770d7574a920c2f4b7df7cbcedf02c9
parent6d13061d653ffe84de00a904c6b49f4caaee2e30
Fix version comparison for PowerTools installation

Apparently ansible_distribution_major_version returns a string and
cannot therefore properly be tested in an integer based test. Use the
version() function instead.

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

Change-Id: I7abb42f94b1543aed5fe3ca548184ac1082612d7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
provision/install-base-pkgs-RedHat.yaml