Add ansible 2.9 support

This commit adds ansible 2.9 support in addition of 2.8.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit aefba82a2e)
pull/5113/head
Dimitri Savineau 2019-11-01 09:28:03 -04:00 committed by Guillaume Abrioux
parent 8cc2f8f21e
commit 9d4f90c8b4
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,15 @@
---
- name: fail on unsupported ansible version (1.X)
fail:
msg: "Ansible version must be >= 2.8.x, please update!"
msg: "Ansible version must be >= 2.x, please update!"
when: ansible_version.major|int < 2
- name: fail on unsupported ansible version
fail:
msg: "Ansible version must be 2.8!"
msg: "Ansible version must be 2.8 or 2.9!"
when:
- ansible_version.major|int == 2
- ansible_version.minor|int != 8
- ansible_version.minor|int not in [8, 9]
- name: fail on unsupported system
fail: