mirror of https://github.com/ceph/ceph-ansible.git
validate: force ansible version
We currently only support Ansible 2.4.X so let's fail if the version is different. Signed-off-by: Sébastien Han <seb@redhat.com>pull/2885/head
parent
5ef5fcd0b6
commit
e61ca882a1
|
@ -59,18 +59,18 @@
|
|||
- ansible_distribution == 'openSUSE Leap'
|
||||
- ansible_distribution_version | version_compare('42.3', '<')
|
||||
|
||||
- name: fail on unsupported ansible version
|
||||
- name: fail on unsupported ansible version (1.X)
|
||||
fail:
|
||||
msg: "Ansible version must be >= 2.3.x, please update!"
|
||||
msg: "Ansible version must be >= 2.4.x, please update!"
|
||||
when:
|
||||
- ansible_version.major|int < 2
|
||||
|
||||
- name: fail on unsupported ansible version
|
||||
fail:
|
||||
msg: "Ansible version must be >= 2.3.x, please update!"
|
||||
msg: "Ansible version must be between 2.4.x and 2.5.x!"
|
||||
when:
|
||||
- ansible_version.major|int == 2
|
||||
- ansible_version.minor|int < 3
|
||||
- (ansible_version.minor|int < 4 or ansible_version.minor|int > 5)
|
||||
|
||||
- name: fail if systemd is not present
|
||||
fail:
|
||||
|
|
Loading…
Reference in New Issue