allow using ansible 2.8

Currently we only support ansible 2.7
We plan to use 2.8 when it will be release so we have to support both
2.7 and 2.8.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1700548

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit e471bce76b)
pull/3884/head
Dimitri Savineau 2019-04-17 10:22:59 -04:00 committed by Guillaume Abrioux
parent 3787c9b7ad
commit 8edb064606
7 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Alfredo Deza
description: Installs Ceph Storage Agent
license: Apache
min_ansible_version: 2.4
min_ansible_version: 2.7
platforms:
- name: EL
versions:

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Sébastien Han
description: Installs A Ceph Client
license: Apache
min_ansible_version: 2.4
min_ansible_version: 2.7
platforms:
- name: EL
versions:

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Sébastien Han
description: Installs Ceph
license: Apache
min_ansible_version: 2.4
min_ansible_version: 2.7
platforms:
- name: EL
versions:

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Guillaume Abrioux
description: Handles ceph-ansible initial configuration
license: Apache
min_ansible_version: 2.4
min_ansible_version: 2.7
platforms:
- name: EL
versions:

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Sébastien Han
description: Installs Ceph
license: Apache
min_ansible_version: 2.4
min_ansible_version: 2.7
platforms:
- name: EL
versions:

View File

@ -4,7 +4,7 @@ galaxy_info:
author: Sébastien Han
description: Handles ceph-ansible default vars for all roles
license: Apache
min_ansible_version: 2.3
min_ansible_version: 2.7
platforms:
- name: Ubuntu
versions:

View File

@ -61,16 +61,16 @@
- name: fail on unsupported ansible version (1.X)
fail:
msg: "Ansible version must be >= 2.4.x, please update!"
msg: "Ansible version must be >= 2.7.x, please update!"
when:
- ansible_version.major|int < 2
- name: fail on unsupported ansible version
fail:
msg: "Ansible version must be 2.7!"
msg: "Ansible version must be 2.7 or 2.8!"
when:
- ansible_version.major|int != 2
- ansible_version.minor|int != 7
- ansible_version.major|int == 2
- ansible_version.minor|int not in [7, 8]
- name: fail if systemd is not present
fail: