From: Ken Dreyer Date: Fri, 3 Mar 2017 16:56:30 +0000 (-0700) Subject: check_system: improve RHCS support message and version comparison X-Git-Tag: v2.2.0rc1~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9a317ef30d689c2b9f39ddb5d6eaaa1570aa616;p=ceph-ansible.git check_system: improve RHCS support message and version comparison "red hat storage" -> "red hat ceph storage" "RHEL 7.1" -> "RHEL 7" and make the version number check verify the very latest version https://bugzilla.redhat.com/show_bug.cgi?id=1354059 --- diff --git a/roles/ceph-common/tasks/checks/check_system.yml b/roles/ceph-common/tasks/checks/check_system.yml index e198e1f18..985c387e3 100644 --- a/roles/ceph-common/tasks/checks/check_system.yml +++ b/roles/ceph-common/tasks/checks/check_system.yml @@ -14,12 +14,12 @@ msg: "Distribution not supported {{ ansible_os_family }}" when: "'{{ ansible_os_family }}' not in ['Debian', 'RedHat']" -- name: fail on unsupported distribution for red hat storage +- name: fail on unsupported distribution for red hat ceph storage fail: - msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 7.1" + msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 7" when: - ceph_rhcs - - ansible_distribution_version | version_compare('7.1', '<') + - ansible_distribution_version | version_compare('7.3', '<') - name: fail on unsupported distribution for ubuntu cloud archive fail: