Merge pull request #1862 from ceph/fail-ansible

fail if ansible version < 2.3
pull/1866/head
Sébastien Han 2017-09-07 08:44:01 +02:00 committed by GitHub
commit d2032c92af
1 changed files with 9 additions and 3 deletions

View File

@ -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: