tests: fail if ansible version is not 2.7

Latest ansible version at the moment is 2.7

We should explicitly require 2.7 only on master branch.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3104/head
Guillaume Abrioux 2018-10-30 14:30:13 +01:00 committed by Sébastien Han
parent 62c314e2ba
commit 17ffb792e0
1 changed files with 3 additions and 3 deletions

View File

@ -67,10 +67,10 @@
- name: fail on unsupported ansible version
fail:
msg: "Ansible version must be between 2.6.x and 2.7.x!"
msg: "Ansible version must be 2.7!"
when:
- ansible_version.major|int == 2
- (ansible_version.minor|int < 6 or ansible_version.minor|int > 7)
- ansible_version.major|int != 2
- ansible_version.minor|int != 7
- name: fail if systemd is not present
fail: