From fc3300ea4fc07702f17684ee85a782e31f21c55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 6 Sep 2017 17:52:49 +0200 Subject: [PATCH] fail if ansible version < 2.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-common/tasks/checks/check_system.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/ceph-common/tasks/checks/check_system.yml b/roles/ceph-common/tasks/checks/check_system.yml index 880ceb284..ecc180e30 100644 --- a/roles/ceph-common/tasks/checks/check_system.yml +++ b/roles/ceph-common/tasks/checks/check_system.yml @@ -51,10 +51,16 @@ - 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: