diff --git a/ceph-ansible.spec.in b/ceph-ansible.spec.in index e2ceb2ead..9882a8b8a 100644 --- a/ceph-ansible.spec.in +++ b/ceph-ansible.spec.in @@ -16,8 +16,8 @@ Obsoletes: ceph-iscsi-ansible <= 1.5 BuildArch: noarch -BuildRequires: ansible >= 2.8 -Requires: ansible >= 2.8 +BuildRequires: ansible >= 2.9 +Requires: ansible >= 2.9 %if 0%{?rhel} == 7 BuildRequires: python2-devel diff --git a/requirements.txt b/requirements.txt index 00d745372..9dbf90ae2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ # These are Python requirements needed to run ceph-ansible master -ansible>=2.8.8,<2.9 +ansible>=2.9,<2.10,!=2.9.10 netaddr diff --git a/roles/ceph-validate/tasks/check_system.yml b/roles/ceph-validate/tasks/check_system.yml index 5e6072812..5592b7b00 100644 --- a/roles/ceph-validate/tasks/check_system.yml +++ b/roles/ceph-validate/tasks/check_system.yml @@ -6,10 +6,10 @@ - name: fail on unsupported ansible version fail: - msg: "Ansible version must be 2.8 or 2.9!" + msg: "Ansible version must be 2.9!" when: - ansible_version.major|int == 2 - - ansible_version.minor|int not in [8, 9] + - ansible_version.minor|int != 9 - name: fail on unsupported system fail: diff --git a/tests/requirements.txt b/tests/requirements.txt index af4437a0c..d79bb55cc 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -3,7 +3,7 @@ six==1.10.0 testinfra>=3,<4 pytest-xdist==1.28.0 pytest>=4.6,<5.0 -ansible>=2.8.8,<2.9 +ansible>=2.9,<2.10,!=2.9.10 Jinja2>=2.10 netaddr mock