]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fail if ansible version < 2.3 1862/head
authorSébastien Han <seb@redhat.com>
Wed, 6 Sep 2017 15:52:49 +0000 (17:52 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 7 Sep 2017 05:53:17 +0000 (07:53 +0200)
We only test and support 2.3.x at the moment.

Closes: https://github.com/ceph/ceph-ansible/issues/1858
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/checks/check_system.yml

index 880ceb284d02ad274f53486bd30946f3fa500252..ecc180e3025b7ae581ca4fd2846d06f134553f91 100644 (file)
 
 - name: fail on unsupported ansible version
   fail:
-    msg: "Ansible version must be >= 1.9, please update!"
+    msg: "Ansible version must be >= 2.3.x, please update!"
   when:
-    - ansible_version.major|int == 1
-    - ansible_version.minor|int < 9
+    - ansible_version.major|int < 2
+
+- name: fail on unsupported ansible version
+  fail:
+    msg: "Ansible version must be >= 2.3.x, please update!"
+  when:
+    - ansible_version.major|int == 2
+    - ansible_version.minor|int < 3
 
 - name: fail if systemd is not present
   fail: